From 2f178963c0d44f2094a4bfdd0c2c9432739a3f1b Mon Sep 17 00:00:00 2001 From: primo-ppcg Date: Fri, 18 Aug 2023 10:32:24 +0700 Subject: [PATCH] update `each` keys before body --- src/boot/boot.janet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index af4f4853..7b89bd93 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -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]