[CLJ-992] `iterate` reducer Created: 10/May/12 Updated: 09/Jan/16
|Affects Version/s:||Release 1.5|
|Patch:||Code and Test|
Added a reducer implementation mirroring clojure.core/iterate.
|Comment by Alan Malloy [ 10/May/12 9:50 PM ]|
Should I have made this implement Seqable as well? It wasn't clear to me, because as far as I could see this was the only function in clojure.core.reducers that's generating a brand-new sequence rather than transforming an existing one.
|Comment by Alan Malloy [ 10/May/12 10:24 PM ]|
Previous version neglected to include the seed value of the iteration in the reduce.
|Comment by Jason Jackson [ 11/May/12 11:23 AM ]|
Currying iterate seems useless, albeit not harmful.
While implementing repeat, I couldn't use currying. Because 1-arity is already reserved for infinite repeat ([n x] and [x], not [n x] and [n] if currying)
How about we just support currying for functions where last param is reducible?
|Comment by Alan Malloy [ 18/Aug/12 7:16 PM ]|
This new patch replaces the previous patch. As requested, I am splitting up the large issue CLJ-993 into smaller tickets.
|Comment by Ghadi Shayban [ 09/Jan/16 5:34 PM ]|
iterate is now reducible