raulraja
/** * Map over Left and Right of this Either */ inline fun <C, D> bimap(leftOperation: (A) -> C, rightOperation: (B) -> D): Either<C, D> = fold({ Left(leftOperation(it)) }, { Right(rightOperation(it)) })