Skip to content

Commit 8d10ce9

Browse files
samumbachhemanth
authored andcommitted
Update Applicative Functor example (#106)
Update for consistency with commit c9590ea.
1 parent c9590ea commit 8d10ce9

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
@@ -541,7 +541,7 @@ const arg2 = [4, 5];
541541
// combining function - must be curried for this to work
542542
const add = (x) => (y) => x + y;
543543

544-
const partiallyAppliedAdds = [add].ap(arg1); // [(y) => 1 + y, (y) => 2 + y]
544+
const partiallyAppliedAdds = [add].ap(arg1); // [(y) => 1 + y, (y) => 3 + y]
545545
```
546546

547547
This gives you an array of functions that you can call `ap` on to get the result:

0 commit comments

Comments
 (0)