Skip to content

Commit 509a56a

Browse files
committed
[lazy] straight cons call in filter
1 parent 2a4f2a2 commit 509a56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clj/clojure/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@
14991499
(let [step (fn [p c]
15001500
(when-let [s (seq c)]
15011501
(if (p (first s))
1502-
(clojure.lang.Cons. (first s) (filter p (rest s)))
1502+
(cons (first s) (filter p (rest s)))
15031503
(recur p (rest s)))))]
15041504
(lazy-seq (step pred coll))))
15051505

0 commit comments

Comments
 (0)