getOrElseDo method

T getOrElseDo(
  1. T fallback()
)

Implementation

T getOrElseDo(T Function() fallback) =>
    fold(() => fallback(), (some) => some);