right If Null
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()Content copied to clipboard
Returns Right if the value of type Any? is null, otherwise the specified A value wrapped into an Left.