mirror of
https://github.com/janet-lang/janet
synced 2026-09-14 21:31:20 +00:00
Add where clause to list comprehension.
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@
|
||||
|
||||
(defn assert-many [f n e]
|
||||
(var good true)
|
||||
(for [i 0 n]
|
||||
(loop [i :range [0 n]]
|
||||
(if (not (f i))
|
||||
(:= good false)))
|
||||
(assert good e))
|
||||
|
||||
Reference in New Issue
Block a user