Reorder type generic order
This commit is contained in:
parent
baab2e75d9
commit
b53558e2d1
@ -22,7 +22,7 @@ export const eitherChain =
|
|||||||
fa._tag === 'Right' ? f(fa.right) : fa
|
fa._tag === 'Right' ? f(fa.right) : fa
|
||||||
|
|
||||||
export const fold =
|
export const fold =
|
||||||
<A, B, E>(onLeft: (e: E) => B, onRight: (a: A) => B) =>
|
<A, E, B>(onLeft: (e: E) => B, onRight: (a: A) => B) =>
|
||||||
(fa: Either<A, E>): B =>
|
(fa: Either<A, E>): B =>
|
||||||
fa._tag === 'Left' ? onLeft(fa.left) : onRight(fa.right)
|
fa._tag === 'Left' ? onLeft(fa.left) : onRight(fa.right)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user