arrow-core / arrow.core.extensions / EitherBifunctor / bimap
open fun <A, B, C, D> EitherOf<A, B>.bimap(fl: (A) -> C, fr: (B) -> D): Either<C, D>
Do you like Arrow?