orElse

open fun orElse(other: T): T

Returns the result value in case of Success, otherwise returns the other value.

Return

The result value in case of Success, otherwise other.

Parameters

other

The other value.