mirror of
https://github.com/janet-lang/janet
synced 2024-06-16 18:29:56 +00:00
add :unless modifier to (doc loop)
This commit is contained in:
parent
7b4c3bdbcc
commit
aeacc0b31b
|
@ -592,6 +592,9 @@
|
||||||
* `:when condition` -- only evaluates the current loop body when `condition`
|
* `:when condition` -- only evaluates the current loop body when `condition`
|
||||||
is true.
|
is true.
|
||||||
|
|
||||||
|
* `:unless condition` -- only evaluates the current loop body when `condition`
|
||||||
|
is false.
|
||||||
|
|
||||||
The `loop` macro always evaluates to nil.
|
The `loop` macro always evaluates to nil.
|
||||||
```
|
```
|
||||||
[head & body]
|
[head & body]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user