getOrElse #
inline fun <TNewSuccess, TSuccess : TNewSuccess, TFailure> PragmaResult<TSuccess, TFailure>.getOrElse(onFailure: (TFailure) -> TSuccess): TSuccess
Returns the encapsulated value if this instance represents success or the result of onFailure function for the encapsulated TFailure if it is failure.