mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 15:30:27 +00:00
Merge pull request #1258 from primo-ppcg/each
Update `each` keys before body
This commit is contained in:
commit
3df1d54847
@ -436,8 +436,8 @@
|
|||||||
:each ~(,in ,ds ,k)
|
:each ~(,in ,ds ,k)
|
||||||
:keys k
|
:keys k
|
||||||
:pairs ~[,k (,in ,ds ,k)]))
|
:pairs ~[,k (,in ,ds ,k)]))
|
||||||
,;body
|
(set ,k (,next ,ds ,k))
|
||||||
(set ,k (,next ,ds ,k))))))
|
,;body))))
|
||||||
|
|
||||||
(defn- iterate-template
|
(defn- iterate-template
|
||||||
[binding expr body]
|
[binding expr body]
|
||||||
|
Loading…
Reference in New Issue
Block a user