Files
30-seconds-of-code/glossary/Functor.md
Robert Mennell a3fb69e946 Create Functor.md
2018-07-24 10:27:06 -07:00

6 lines
273 B
Markdown

### Functor
A Functor is a data type common in functional programming that impliments a method `map`. The `map` method takes a function and applies it to the data in the Functor, returning a new instance of the Functor with the result.
JavaScript `Array`s are Functors.