Add where clause to list comprehension.

This commit is contained in:
Calvin Rose
2018-05-23 23:43:48 -04:00
parent b09bf72490
commit 8bcb5e0019
2 changed files with 34 additions and 31 deletions
+1 -1
View File
@@ -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))