Folds in TypeScript
For past few days, folds were stuck in my head for some reason and needed some unfolding π. I did so and below is the summary of my understanding for the benefit of my future self.
Why
Consider the scenario where we have an array of numbers and we w...
blog.omkarpatil.dev10 min read
Berend
Very nice article. It might help to make the types, generics and arguments a bit more meningful in this example just for explanations sake. So instead of B, using Accumulator for instance. Thanks for this :)