From 31cccd1f00b0287694470ae2b278bc0e8260e61e Mon Sep 17 00:00:00 2001 From: Robert Mennell Date: Tue, 24 Jul 2018 10:27:06 -0700 Subject: [PATCH] Create Functor.md --- glossary/Functor.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 glossary/Functor.md diff --git a/glossary/Functor.md b/glossary/Functor.md new file mode 100644 index 000000000..60e5d5801 --- /dev/null +++ b/glossary/Functor.md @@ -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.