Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

optimize lazy seq -seq implementation

  • Loading branch information...
commit b0792ff231644b99f20725513b824daad745f50f 1 parent 236dd45
@swannodette swannodette authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/cljs/cljs/core.cljs
View
6 src/cljs/cljs/core.cljs
@@ -2014,7 +2014,11 @@ reduces them without incurring seq initialization"
(-hash [coll] (caching-hash coll hash-coll __hash))
ISeqable
- (-seq [coll] (seq (lazy-seq-value coll))))
+ (-seq [coll]
+ (lazy-seq-value coll)
+ (if-not (nil? x)
+ coll
+ ())))
(declare ArrayChunk)
Please sign in to comment.
Something went wrong with that request. Please try again.