orElse

open fun orElse(other: T): T

Return the object that was bound, or other if no value has been bound.

Return

the value, if bound, otherwise other

Parameters

other

the value to be returned if there is no bound value (may be null)