Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
Clojure
clojure.core
iterate
iterate
function
v1.0
clojure.core/iterate
Available in:
BB
CLJ
CLJS
(
iterate
[
f
x
]
)
Returns a lazy (infinite!) sequence of x, (f x), (f (f x)) etc. f must be free of side-effects
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Collections › Creating
See Also
array-map
cycle
hash-map
hash-set
lazy-seq
list
list*
range
repeat
repeatedly
View source on GitHub ↗
← isa?
iteration →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4