Update Functor.md

This commit is contained in:
Angelos Chalaris
2018-07-24 20:50:32 +03:00
committed by GitHub
parent 86a167eb19
commit 1978d554ed

View File

@ -1,5 +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 an example of the Functor data type.
A Functor is a data type common in functional programming that implements a `map` method.
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 an example of the Functor data type.