mirror of
https://github.com/janet-lang/janet
synced 2024-12-27 00:40:26 +00:00
Address #276
This commit is contained in:
parent
6f9c9879ca
commit
f7b7c83264
@ -1589,7 +1589,7 @@
|
||||
ret)
|
||||
|
||||
(defn some
|
||||
"Returns false if all xs are false or nil, otherwise returns the first true value."
|
||||
"Returns nil if all xs are false or nil, otherwise returns the first true value."
|
||||
[pred xs]
|
||||
(var ret nil)
|
||||
(loop [x :in xs :while (not ret)] (if-let [y (pred x)] (set ret y)))
|
||||
|
Loading…
Reference in New Issue
Block a user