Monthly Archives: September 2021

What is endfunctor and functor in Javascript? The easiest explanation.

So what is functor? A functor is a container of type a that, when subjected to a function that maps from a→b, yields a container of type b. https://stackoverflow.com/a/2031430/2706861 In functional programming, a functor is a design pattern inspired by the definition from category theory, that allows for a generic type to apply a function inside without changing the structure of the generic type. Wikipedia …and endfunctor? Endofunctor: A […]