Files
30-seconds-of-code/glossary/Functor.md
2019-08-13 11:19:29 +03:00

9 lines
324 B
Markdown

---
title: Functor
tags: Functor
---
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.