Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/lsr/las3r.core.lsr
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,10 @@
"Returns a lazy seq of the first item in each coll, then the second
etc."
[& colls]
(apply concat (apply map list colls)))

(let [fc (first colls)]
(when (seq fc)
(lazy-cons (first fc)
(apply interleave (concat (rest colls) [(rest fc)]))))))

(defn nthrest
"Returns the nth rest of coll, (seq coll) when n is 0."
Expand Down