Reorder type generic order

This commit is contained in:
Eric Rumsey 2025-05-29 11:38:50 -05:00
parent baab2e75d9
commit b53558e2d1

View File

@ -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)