repeat

functionsince v0.0-927 clojure.core/repeatEdit
(repeat x)
(repeat n x)

Details:

Returns a lazy sequence of xs.

The length of the sequence is infinite, or n if provided.


See Also:


Source docstring:
Returns a lazy (infinite!, or length n if supplied) sequence of xs.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn repeat
  ([x] (Repeat. nil -1 x nil nil))
  ([n x] (if (pos? n)
           (Repeat. nil n x nil nil)
           (.-EMPTY List))))