function | since v0.0-927 | clojure.core/every? | Edit |
(every? pred coll)
Returns true if (pred x)
is logical true for every x
in coll
, else false.
Returns true if (pred x) is logical true for every x in coll, else false.
(defn every?
[pred coll]
(cond
(nil? (seq coll)) true
(pred (first coll)) (recur pred (next coll))
:else false))