mirror of
https://github.com/janet-lang/janet
synced 2025-10-30 15:13:03 +00:00
add :unless loop modifier
This commit is contained in:
@@ -473,6 +473,7 @@
|
||||
:repeat (with-syms [iter]
|
||||
~(do (var ,iter ,verb) (while (> ,iter 0) ,rest (-- ,iter))))
|
||||
:when ~(when ,verb ,rest)
|
||||
:unless ~(unless ,verb ,rest)
|
||||
(error (string "unexpected loop modifier " binding))))))
|
||||
|
||||
# 3 term expression
|
||||
|
||||
Reference in New Issue
Block a user