iterate

functionsince v0.0-927 clojure.core/iterateEdit
(iterate f x)

Details:

Returns a lazy sequence of x, (f x), (f (f x)) etc.

f must be free of side-effects.


See Also:


Source docstring:
Returns a lazy sequence of x, (f x), (f (f x)) etc. f must be free of side-effects
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn iterate
  {:added "1.0"}
  [f x] (Iterate. nil f nil x nil))