failureOrDefault

infix inline fun <E, T> KResult<E, T>.failureOrDefault(default: (T) -> E): E(source)

Returns the error of the Failure side, or the result of the default function otherwise

Since

0.2.0