fromNullable

inline fun <E, A> fromNullable(value: A?, ifNull: () -> E): Validated<E, A>(source)

Converts a nullable A? to a Validated<E, A>, where the provided ifNull output value is returned as Invalid when the specified value is null.