bimap
inline fun <C, D> bimap(leftOperation: (left: A) -> C, rightOperation: (right: B) -> D): Either<C, D>
Deprecated
This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Either DSL, or map + mapLeft
Replace with
map(rightOperation).mapLeft(leftOperation)Content copied to clipboard
Map over Left and Right of this Either