fold<B> abstract method
B
fold<B>(
- B onSome(
- T value
- B onNone()
Fold is used to handle both Some and None cases.
Implementation
B fold<B>(B Function(T value) onSome, B Function() onNone);