clojure.core/repeatedly¶
Takes a function of no args, presumably with side effects, and returns an infinite (or length n if supplied) lazy sequence of calls to it
Examples¶
Note by boxie¶
if the function you want to repeat doesn't have side effects and has an argument, 'iterate' may be what you are looking for.
See also¶
- clojure.core/repeat (2)
- clojure.core/iterate (0)
- clojure.core/lazy-seq (6)
- clojure.core/dotimes (1)
- clojure.core/doall (0)
- clojure.core/rand-int (1)
- clojure.core/constantly (3)
- clojure.core/while (1)
Content from the matching ClojureDocs page, with authors credited on each contribution.