Liking cljdoc? Tell your friends :D
Clojure only.

java-time.seqs


iterate

(iterate f initial v & vs)

Returns a lazy sequence of initial , (apply f initial v vs), etc.

Useful when you want to produce a sequence of temporal entities, for example:

(iterate plus (days 0) 1) => (nil nil nil ...)

(iterate plus (local-date 2010 1 1) (years 1)) => (nil nil ...)

(iterate adjust (local-date 2010 1 1) :next-working-day) => (nil nil ...)

Returns a lazy sequence of `initial` , `(apply f initial v vs)`, etc.

Useful when you want to produce a sequence of temporal entities, for
example:

  (iterate plus (days 0) 1)
  => (nil nil nil ...)

  (iterate plus (local-date 2010 1 1) (years 1))
  => (nil nil ...)

  (iterate adjust (local-date 2010 1 1) :next-working-day)
  => (nil nil ...)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close