Welcome! Please see the About page for a little more info on how this works.

0 votes
in Docs by

The non-caching behaviour of iterate when used as a generator is not documented and counter-intuitive. It should be documented, just like it's documented for e.g. eduction.

Even though the docstring for iterate requires f to be side-effect free, f might take a long time to compute, in which case users should be wary that the computation might happen more than once.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1907 (reported by bronsa)
...