fix: fix the lift example error

This commit is contained in:
Sean-Lan 2017-04-14 18:43:39 +08:00
parent 273175df14
commit 0cd5973ddf

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`.