From a3fb69e9461ec4f74753ef0a7c7eb6d84d045727 Mon Sep 17 00:00:00 2001 From: Robert Mennell Date: Tue, 24 Jul 2018 10:27:06 -0700 Subject: [PATCH 1/4] 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. From fb4547b4f1e8491c2a497b0d899b5795d036eae5 Mon Sep 17 00:00:00 2001 From: Robert Mennell Date: Tue, 24 Jul 2018 10:29:17 -0700 Subject: [PATCH 2/4] Update Functor.md --- glossary/Functor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glossary/Functor.md b/glossary/Functor.md index 60e5d5801..99a4a951a 100644 --- a/glossary/Functor.md +++ b/glossary/Functor.md @@ -2,4 +2,4 @@ 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. + JavaScript `Array`s are an example of Functor. From 22453e8b223ef424693838b88f2b3ef9f48504d6 Mon Sep 17 00:00:00 2001 From: Robert Mennell Date: Tue, 24 Jul 2018 10:29:35 -0700 Subject: [PATCH 3/4] Update Functor.md --- glossary/Functor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glossary/Functor.md b/glossary/Functor.md index 99a4a951a..b16110bd7 100644 --- a/glossary/Functor.md +++ b/glossary/Functor.md @@ -2,4 +2,4 @@ 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 Functor. + JavaScript `Array`s are an example of the Functor data type. From 6605e715830b4cc320e51c1b083c5cdb2740e7b2 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 24 Jul 2018 20:50:32 +0300 Subject: [PATCH 4/4] Update Functor.md --- glossary/Functor.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glossary/Functor.md b/glossary/Functor.md index b16110bd7..6c1f4b43e 100644 --- a/glossary/Functor.md +++ b/glossary/Functor.md @@ -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.