ClojureDocs

导航

命名空间

repeatedly

clojure.core

自 1.0 起提供 (源代码)
  • (repeatedly f)
  • (repeatedly n f)
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