But then, I didn't always agree it was amazing. Really, I initially cursed after it - declaring it useful not for much. I obviously lacked understanding of this nifty little array method.
Now that I've grokked it, I want to share how I got here in case I got 7 million others who might be where I was and need to see its goodness. So, in this series called Reduce, I'll unravel (or, really, reduce) its mysteries.
- What is
reduce()and how I grokked it
reduce()'s interesting nitty-gritties
reduce()in action niftily
As for installment #4, since I'll be breaking down each example (of reusable functions or function recipes) in the way I read it to understand, each one will be its own post. So, in all, there might be 10 or so posts in the series.
The back story
I'd cursorily looked at
As I hit it the first time, scanning the entire page, I got further frustrated, thinking, what's this, anyway? It doesn't even make sense! And, even if it did, it's not useful for much more than "accumulating", piling stuff on stuff. 'Maybe I should just let it go until I saw it in some more practical use case....'
Nonetheless, I persisted in studying.
On a morning when I was still fresh and golden and young, I came back and dug in. It started to make sense. And, as it did, so did the illustrations. I thought, why not publish your very own grokking it, perhaps there may be one person out there who might benefit. Yes, 7 million out there!
reduce()'s amazingness to me.
That amazingness is the series. Dig in, enjoy.