change chain
This commit is contained in:
parent
dfe823f53a
commit
ff7da1c590
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ export const ap = curry(dispatch(['fantasy-land/ap', 'ap'],
|
||||||
/**
|
/**
|
||||||
* @template A, B
|
* @template A, B
|
||||||
* @template {Morphism<A, B>} Ap
|
* @template {Morphism<A, B>} Ap
|
||||||
* @param {Morphism<A, B>} f
|
* @param {Ap} f
|
||||||
* @param {{ ap: Ap } | Ap} a
|
* @param {{ ap: Ap } | Ap} a
|
||||||
*/
|
*/
|
||||||
(f, 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'],
|
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'],
|
export const map = curry(dispatch(['fantasy-land/map', 'map'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue