| function | since v0.0-927 | Edit |
(cycle coll)Returns an infinite lazy sequence of repetitions of the items in coll.
Returns a lazy (infinite!) sequence of repetitions of the items in coll.
(defn cycle
[coll] (if-let [vals (seq coll)]
(Cycle. nil vals nil vals nil)
(.-EMPTY List)))