match<R> method
R?
match<R>({
- required R some(
- T ok
- required R? none(),
Implementation
R? match<R>({
required R Function(T ok) some,
required R? Function() none,
}) =>
switch (this) {
Some<T>(:final T _value) => some(_value),
None() => none(),
};