|
|
|
|
|
by dmak
4636 days ago
|
|
Pretty interesting solution. The first thing that came to my head was a loop, but you just used reduce. What are some scenarios where you would use a reduce over a loop? I use underscore a lot too, and I find myself just using _.each all the time |
|
The bonus upside is that these paradigms also make parallelism quite simple, should it later be necessary.