Re: Parallelising reduce-kv - r/fold into maps

2012-10-10 Thread Wolodja Wentland
On Tue, Oct 09, 2012 at 15:31 -0700, Jean Niklas L'orange wrote: >On Tuesday, October 9, 2012 9:14:51 PM UTC+2, Wolodja Wentland wrote: > > --- snip --- > (reduce-kv >  (fn [ret k v] >   (assoc ret k (func-that-does-something-with v))) >  some-map)) > --- snip --

Re: Parallelising reduce-kv

2012-10-09 Thread Jean Niklas L'orange
On Tuesday, October 9, 2012 9:14:51 PM UTC+2, Wolodja Wentland wrote: > > --- snip --- > (reduce-kv > (fn [ret k v] > (assoc ret k (func-that-does-something-with v))) > some-map)) > --- snip -- > > I am using reducers in other places, but am not entirely sure how to > employ > them her

Parallelising reduce-kv

2012-10-09 Thread Wolodja Wentland
Hi all, I've noticed that I wrote the following recently and wonder if this can be done in a more succinct/idiomatic way and also if it can be parallelised: --- snip --- (reduce-kv (fn [ret k v] (assoc ret k (func-that-does-something-with v))) some-map)) --- snip -- I am using reducers in ot