Folds-Recursion Patterns in JS

This is an article about functional Recursion on the Array data structure.

In recursion , May 22, 2020

How to reverse a tree in JavaScript the Functional way in 5 lines of code

Trees are the single most important data structure in computer science, after lists. Just about everything you do in your programming...

Read More

All Stories

Monoids in JS

Alternatively, the fundamental notion of category theory is that of a Monoid — Categories for the Working Mathematician

Zip Arrays-Recursion Patterns in JS

This is an article about functional way to Zip two Arrays .

Folds-Recursion Patterns in JS

This is an article about functional Recursion on the Array data structure.

Promise as Functor (Video)

Idea: The Promise then can be seen as a map method that applies a function to the expected value.

Maybe (aka Option) Monad in JavaScript

The problem of null or undefined is one of the biggest problems in computation theory. If we want to write meaningful programs, we must accept the fact that some computations...