We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5734356 + 7f4ae37 commit 6479bd5Copy full SHA for 6479bd5
examples/all.janet
@@ -6,3 +6,10 @@
6
7
(all truthy? [1 2 3]) # -> true
8
(all truthy? [1 2 nil]) # -> false
9
+
10
+# multiple data structures can be handled
11
+(all (fn [x y] (pos? (* x y))) [-1 2] [-2 1]) # -> true
12
13
+# predicate may not be applied to all values (e.g. 43)
14
+(all |(neg? (+ $0 $1 $2)) [-2 2] [1 -8] [0 1 43]) # -> true
15
0 commit comments