Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Functional Programming – 22: Functor

8.8K views on YouTube

In Functional Programming, Functor is simply a structure that can be mapped over. The concept is borrowed from Category Theory. In Category Theory, Functor is a mapping between Categories.

This mapping involves:
– mapping of objects (types)
– mapping of arrows (functions)

It should also:
– preserve composition law
– preserve identity law

In this Video:
– Functor
– Endofunctor
– Option Functor
– List Functor
– Either Functor

Links:
– Category Theory by Bartosz Milewski – https://www.youtube.com/watch?v=FyoQjkwsy7o