Merge pull request #147 from Sean-Lan/fix/lift

fix: fix the lift example error
This commit is contained in:
hemanth.hm 2017-04-14 16:25:53 +05:30 committed by GitHub
commit 742ea02c49

View file

@ -456,7 +456,7 @@ const mult = a => b => a * b
const liftedMult = liftA2(mult) // this function now works on functors like array
liftedMult([1, 2], [3]) // [3, 6]
liftA2((a, b) => a + b)([1, 2], [3, 4]) // [4, 5, 5, 6]
liftA2(a => b => a + b)([1, 2], [3, 4]) // [4, 5, 5, 6]
```
Lifting a one-argument function and applying it does the same thing as `map`.