repeatedly
has an arity for limiting the number of repeats with take
.
Examples:
; bad (take 5 (repeatedly (range 10))
; good (repeatedly 5 (range 10))
`repeatedly` has an arity for limiting the number of repeats with `take`. Examples: ; bad (take 5 (repeatedly (range 10)) ; good (repeatedly 5 (range 10))
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |