fold<R> method

R fold<R>(
  1. R none(),
  2. R some(
    1. T some
    )
)

Implementation

R fold<R>(R Function() none, R Function(T some) some) {
  return isSome ? some(_value!) : none();
}