In Functional Programming, what is a functor?

The word “functor” comes from category theory, which is a very general, very abstract branch of mathematics. It has been borrowed by designers of functional languages in at least two different ways. In the ML family of languages, a functor is a module that takes one or more other modules as a parameter. It’s considered … Read more