getOrElse method
Extract the result of this IOOption into a IO.
The IO returns a Some when IOOption returns Some.
Otherwise map the type L
of IOOption to type R
by calling orElse
.
Implementation
IO<R> getOrElse(R Function() orElse) => IO(() => run().match(
orElse,
identity,
));