From ff7da1c5904e8e50857e27d2f7eea7ac5fafbfe4 Mon Sep 17 00:00:00 2001 From: rowan Date: Thu, 17 Apr 2025 18:30:43 -0500 Subject: [PATCH] change chain --- src/function.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/function.js b/src/function.js index f4ef437..c00f94f 100644 --- a/src/function.js +++ b/src/function.js @@ -116,7 +116,7 @@ export const ap = curry(dispatch(['fantasy-land/ap', 'ap'], /** * @template A, B * @template {Morphism} Ap - * @param {Morphism} f + * @param {Ap} f * @param {{ ap: Ap } | Ap} a */ (f, a) => { @@ -131,7 +131,7 @@ export const ap = curry(dispatch(['fantasy-land/ap', 'ap'], })) export const chain = curry(dispatch(['fantasy-land/chain', 'chain'], - (f, a) => a.map(f) + (f, a) => f(a) )) export const map = curry(dispatch(['fantasy-land/map', 'map'],