core / pragma / getOrDefault /
getOrDefault #
inline fun <TSuccess, TFailure> PragmaResult<TSuccess, TFailure>.getOrDefault(onFailure: () -> TSuccess): TSuccess
Returns the encapsulated value if this instance represents success or the defaultValue if it is failure.