We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a151497 commit 260556dCopy full SHA for 260556d
1 file changed
src/main/cljs/cljs/core.cljs
@@ -4206,8 +4206,8 @@ reduces them without incurring seq initialization"
4206
this will return :fred if :fred is in the sequence, otherwise nil:
4207
(some #{:fred} coll)"
4208
[pred coll]
4209
- (when (seq coll)
4210
- (or (pred (first coll)) (recur pred (next coll)))))
+ (when-let [s (seq coll)]
+ (or (pred (first s)) (recur pred (next s)))))
4211
4212
(defn not-any?
4213
"Returns false if (pred x) is logical true for any x in coll,
0 commit comments