arrow-core-data / arrow.core / Validated / bimap

bimap

inline fun <EE, B> bimap(fe: (E) -> EE, fa: (A) -> B): Validated<EE, B>

From arrow.typeclasses.Bifunctor, maps both types of this Validated.

Apply a function to an Invalid or Valid value, returning a new Invalid or Valid value respectively.

Do you like Arrow?

Arrow Org
<