Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
Clojure
clojure.core
repeat
repeat
function
v1.0
clojure.core/repeat
Available in:
BB
CLJ
CLJS
(
repeat
[
x
]
[
n
x
]
)
Returns a lazy (infinite!, or length n if supplied) sequence of xs.
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
iterate
lazy-seq
list
list*
range
repeatedly
View source on GitHub ↗
← remove-watch
repeatedly →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4