function | since v0.0-927 | clojure.core/iterate | Edit |
(iterate f x)
Returns a lazy sequence of x
, (f x)
, (f (f x))
etc.
f
must be free of side-effects.
Returns a lazy sequence of x, (f x), (f (f x)) etc. f must be free of side-effects
(defn iterate
{:added "1.0"}
[f x] (Iterate. nil f nil x nil))