arrow-core-data / arrow.core / Validated / fromNullable
@JvmStatic inline fun <E, A> fromNullable(value: A?, ifNull: () -> E): Validated<E, A>
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.
Do you like Arrow?
✖