mirror of
https://github.com/janet-lang/janet
synced 2025-11-07 19:13:02 +00:00
Add compiler optimizations for #1163 - eachp
Should result in much better bytecode in the simple case.
This commit is contained in:
@@ -445,7 +445,7 @@
|
||||
,(case kind
|
||||
:each ~(,in ,ds ,k)
|
||||
:keys k
|
||||
:pairs ~(,tuple ,k (,in ,ds ,k))))
|
||||
:pairs ~[,k (,in ,ds ,k)]))
|
||||
,;body
|
||||
(set ,k (,next ,ds ,k))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user