arrow-core-data / arrow.core / Either / bimap

bimap

inline fun <C, D> bimap(leftOperation: (A) -> C, rightOperation: (B) -> D): Either<C, D>

Map over Left and Right of this Either

Do you like Arrow?

Arrow Org
<