Skip to content

Commit

Permalink
core: make every? return false instead of nil
Browse files Browse the repository at this point in the history
Refs clojure#71

Signed-off-by: Chouser <chouser@n01se.net>
  • Loading branch information
Jarkko Oranen authored and Chouser committed Jun 21, 2009
1 parent fa3d249 commit b03e19a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/clj/clojure/core.clj
Expand Up @@ -1465,10 +1465,10 @@
false."
{:tag Boolean}
[pred coll]
(if (seq coll)
(and (pred (first coll))
(recur pred (next coll)))
true))
(cond
(nil? (seq coll)) true
(pred (first coll)) (recur pred (next coll))
:else false))

(def
#^{:tag Boolean
Expand Down

0 comments on commit b03e19a

Please sign in to comment.