1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-24 17:27:18 +00:00

update each keys before body

This commit is contained in:
primo-ppcg 2023-08-18 10:32:24 +07:00
parent 43a6a70e1e
commit 2f178963c0

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]