I can write my own `getOrElse` that allows this: `...
# arrow
x
I can write my own
getOrElse
that allows this:
Copy code
inline fun <T> Either<Any?, T>.myGetOrElse(default: () -> T): T =
    when (this) {
        is Either.Right -> b
        is Either.Left -> default()
    }