data and frontend enthusiast, Haskell explorer, backend wanderer

Jul 12 · 1 min

Similarly to monoid and semigroup, functor is an algebra — it’s abstracting a general pattern and defining laws it should follow. A functor is a way of applying a function over or around some structure that’s not to be altered. In other words, it lifts the function over…