Hey everyone, happy Saturday. I thought I could bless your afternoon with a nice long article about functional programming
The article is called "Reducers, or understanding the shape of functions", and talks about reducers / higher-order reducers, and how:
- They let you efficiently yet descriptively map and filter over an array many times without allocating any intermediate arrays (and without having to recompute the element every time like when using
- More importantly in my opinion, they help you understand the shape of functions, which is essential to harnessing functional programming and its compositional goodness to its fullest.
I hope you enjoy the article!