Note to self
A Functor is a design pattern that evolves from category theory in mathematics. Fundamentally it’s a mapping between categories that preserves the structure of the original categories involved. It satisfies two laws: -
- Identity law:
- Composition law: