Skip to content

clojure.core/iterate

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 4 Runnable: 0
([f x])

Returns a lazy (infinite!) sequence of x, (f x), (f (f x)) etc. f must be free of side-effects

Examples

by nipra on . May have evaluation errors.
by citizen428 on . May have evaluation errors.
by shockbob on . May have evaluation errors.
by reborg on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.