rightIfNull

inline fun <A> Any?.rightIfNull(default: () -> A): Either<A, Nothing?>

Deprecated

This API is considered redundant. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer Kotlin nullable syntax

Replace with

this?.let { default().left() } ?: null.right()

Returns Right if the value of type Any? is null, otherwise the specified A value wrapped into an Left.