From b23d42386b6e03670674b9fe7234eb746dbd14e0 Mon Sep 17 00:00:00 2001 From: Peter Doherty Date: Fri, 26 Feb 2016 14:54:39 -0500 Subject: [PATCH] adding bind and return note to Monad entry --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index bea7af4..3cf427d 100644 --- a/readme.md +++ b/readme.md @@ -283,6 +283,9 @@ The identity value is empty array `[]` //Contrast to map ['cat,dog','fish,bird'].map(a => a.split(',')) // [['cat','dog'], ['fish','bird']] ``` + +You may also see `of` and `chain` referred to as `return` and `bind` in languages which provide Monad-like constructs as part of their standard library (e.g. Haskell, F#), [the Monad Wikipedia entry](https://en.wikipedia.org/wiki/Monad_%28functional_programming%29) and other literature. Also, remember that JavaScript already has constructs called `return` and `bind`, but the functions mentioned in this context are specifically related to Monads. + --- ## Comonad