Jul 20, 2017 · 1 min read
The reason to write your own fold function over reduce is not to replace reduce but rather to learn and understand the derivation of the function from basic principles. Following these principles, we were able to explore the many applications of that function. Next time you use reduce you will have a good idea about what is happening under the hood 😄.
