From aeacc0b31b98d50b4aea669154df022cdf198a09 Mon Sep 17 00:00:00 2001 From: Andriamanitra Date: Thu, 21 Sep 2023 19:23:40 +0300 Subject: [PATCH] add :unless modifier to (doc loop) --- src/boot/boot.janet | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 4a38030b..f87672c7 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -592,6 +592,9 @@ * `:when condition` -- only evaluates the current loop body when `condition` is true. + * `:unless condition` -- only evaluates the current loop body when `condition` + is false. + The `loop` macro always evaluates to nil. ``` [head & body]