getOrElse method

A getOrElse(
  1. Function0<A> ifEmpty
)

Returns the value if this is a Some or the value returned from evaluating ifEmpty.

Implementation

A getOrElse(Function0<A> ifEmpty) => fold(ifEmpty, identity);