Create Functor.md

This commit is contained in:
Robert Mennell
2018-07-24 10:27:06 -07:00
committed by GitHub
parent efbcf8ded7
commit 31cccd1f00

5
glossary/Functor.md Normal file
View File

@ -0,0 +1,5 @@
### 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.