Skip to content

Commit e110a19

Browse files
committed
adding Fantasy Land spec note to Monad section
1 parent b23d423 commit e110a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ The identity value is empty array `[]`
284284
['cat,dog','fish,bird'].map(a => a.split(',')) // [['cat','dog'], ['fish','bird']]
285285
```
286286

287-
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.
287+
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. Remember that JavaScript already has constructs called `return` and `bind`, but the functions mentioned in this context are specifically related to Monads. It's also important to note that `return` and `bind` are not part of the [Fantasy Land spec](https://github.com/fantasyland/fantasy-land) and are mentioned here for the sake of people interested in learning more about Monads on their own.
288288

289289
---
290290

0 commit comments

Comments
 (0)