Skip to content

Commit d1faf8b

Browse files
authored
Added a note for ap
We've got this pr like 4 times now thinking that it's a typo.
1 parent e918b39 commit d1faf8b

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
@@ -349,7 +349,7 @@ Lifting is when you take a value and put it into an object like a [functor](#poi
349349
Some implementations have a function called `lift`, or `liftA2` to make it easier to run functions on functors.
350350

351351
```js
352-
const liftA2 = (f) => (a, b) => a.map(f).ap(b)
352+
const liftA2 = (f) => (a, b) => a.map(f).ap(b) // note it's `ap` and not `map`.
353353

354354
const mult = a => b => a * b
355355

0 commit comments

Comments
 (0)