Skip to content

Commit db27101

Browse files
committed
[lazy] fixed take-while
1 parent 795925c commit db27101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clj/clojure/core.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,8 +1512,8 @@
15121512
[pred coll]
15131513
(lazy-seq
15141514
(when-let [s (seq coll)]
1515-
(when (pred (first s)))
1516-
(cons (first s) (take-while pred (more s))))))
1515+
(when (pred (first s))
1516+
(cons (first s) (take-while pred (more s)))))))
15171517

15181518
(defn drop
15191519
"Returns a lazy sequence of all but the first n items in coll."

0 commit comments

Comments
 (0)