EitherMapper<T, E> typedef

EitherMapper<T, E> = T Function(E)

Signature for a function that maps either the left or the right side of this disjunction.

Implementation

typedef EitherMapper<T, E> = T Function(E);