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.