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