Added a note for ap

We've got this pr like 4 times now thinking that it's a typo.
This commit is contained in:
hemanth.hm 2016-10-26 06:14:24 +05:30 committed by GitHub
parent e918b396ec
commit d1faf8b4f1

View file

@ -349,7 +349,7 @@ Lifting is when you take a value and put it into an object like a [functor](#poi
Some implementations have a function called `lift`, or `liftA2` to make it easier to run functions on functors.
```js
const liftA2 = (f) => (a, b) => a.map(f).ap(b)
const liftA2 = (f) => (a, b) => a.map(f).ap(b) // note it's `ap` and not `map`.
const mult = a => b => a * b