function | since v0.0-927 | clojure.core/cycle | 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)))