bimap

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

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.