RE: r/fold combinef and reducef init values

2019-01-26 Thread Sean Corfield
ody, you're not really alive." -- Margaret Atwood From: clojure@googlegroups.com on behalf of Brian Craft Sent: Saturday, January 26, 2019 2:02:42 PM To: Clojure Subject: Re: r/fold combinef and reducef init values hey Sean -- The ones on the reduce

Re: r/fold combinef and reducef init values

2019-01-26 Thread Brian Craft
hey Sean -- The ones on the reducers reference page: https://clojure.org/reference/reducers On Friday, January 25, 2019 at 4:05:12 PM UTC-8, Sean Corfield wrote: > Which docs are you reading? The docstring for r/fold says this – with no > indication of calling (reducef) with no arguments (well,

RE: r/fold combinef and reducef init values

2019-01-25 Thread Sean Corfield
Which docs are you reading? The docstring for r/fold says this – with no indication of calling (reducef) with no arguments (well, unless you do not supply combinef – in which case reducef will be used for that, so (reducef) would be called to seed the reductions): "Reduces a collection using a

Re: r/fold combinef and reducef init values

2019-01-25 Thread Brian Craft
Looks like it's something that's changed over different clojure releases. On Friday, January 25, 2019 at 3:35:58 PM UTC-8, Brian Craft wrote: > > From the docs: > > r/fold takes a reducible collection and partitions it into groups of > approximately n (default 512) elements. Each group is reduced