From Apply: if both the function and this value are Valid, apply the function
Validated is a functor.Bifunctor, this method applies one of the given functions.
Is this Valid and matching the given predicate
If the value is Valid but the predicate fails, return an empty Invalid value, otherwise leaves the value unchanged.
If the value is Valid but the predicate fails, return an empty Invalid value, otherwise leaves the value unchanged. This method is mostly useful for allowing validated values to be used in a for comprehension with pattern matching.
apply the given function to the value with the given B when valid, otherwise return the given B
Lazily-apply the given function to the value with the given B when valid, otherwise return the given B.
Is this Invalid or matching the predicate
Run the side-effecting function on the value if it is Valid
Return the Valid value, or the default if Invalid
Apply a function to a Valid value, returning a new Valid value
Return this if it is Valid, or else fall back to the given default.
Converts the value to an Either[E,A]
Convert this value to a single element List if it is Valid, otherwise return an empty List
Returns Valid values wrapped in Some, and None for Invalid values
Lift the Invalid value into a NonEmptyList.
Convert this value to RightOr if Valid or LeftOr if Invalid
When Valid, apply the function, marking the result as valid inside the Applicative's context, when Invalid, lift the Error into the Applicative's contexst
Convert to an Xor, apply a function, convert back.
Convert to an Xor, apply a function, convert back. This is handy when you want to use the Monadic properties of the Xor type.