From 8d10ce9b321fdf269ea0e0c32789c0e0428e8bb9 Mon Sep 17 00:00:00 2001 From: Sam Umbach Date: Mon, 22 Aug 2016 01:23:32 -0400 Subject: [PATCH] Update Applicative Functor example (#106) Update for consistency with commit c9590ea. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 5b09962..92e8456 100644 --- a/readme.md +++ b/readme.md @@ -541,7 +541,7 @@ const arg2 = [4, 5]; // combining function - must be curried for this to work const add = (x) => (y) => x + y; -const partiallyAppliedAdds = [add].ap(arg1); // [(y) => 1 + y, (y) => 2 + y] +const partiallyAppliedAdds = [add].ap(arg1); // [(y) => 1 + y, (y) => 3 + y] ``` This gives you an array of functions that you can call `ap` on to get the result: