1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-23 15:00:27 +00:00

Merge pull request #1258 from primo-ppcg/each

Update `each` keys before body
This commit is contained in:
Calvin Rose 2023-08-18 07:16:19 -05:00 committed by GitHub
commit 3df1d54847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -436,8 +436,8 @@
:each ~(,in ,ds ,k)
:keys k
:pairs ~[,k (,in ,ds ,k)]))
,;body
(set ,k (,next ,ds ,k))))))
(set ,k (,next ,ds ,k))
,;body))))
(defn- iterate-template
[binding expr body]