mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Merge pull request #1402 from sogaiu/each-body-before-set
Swap set / body order for each (#1400)
This commit is contained in:
commit
c293c7de93
@ -442,8 +442,8 @@
|
|||||||
:each ~(,in ,ds ,k)
|
:each ~(,in ,ds ,k)
|
||||||
:keys k
|
:keys k
|
||||||
:pairs ~[,k (,in ,ds ,k)]))
|
:pairs ~[,k (,in ,ds ,k)]))
|
||||||
(set ,k (,next ,ds ,k))
|
,;body
|
||||||
,;body))))
|
(set ,k (,next ,ds ,k))))))
|
||||||
|
|
||||||
(defn- iterate-template
|
(defn- iterate-template
|
||||||
[binding expr body]
|
[binding expr body]
|
||||||
|
Loading…
Reference in New Issue
Block a user