Closed DavidArno closed 4 years ago
Add the means to do something like:
var result = option switch { (Some, x) => x, (None, _) => 0 };
to the Option type via a deconstructor.
Note this will be a breaking change as the current (hasValue, value) deconstructor will have to be removed.
(hasValue, value)
Done.
Add the means to do something like:
to the Option type via a deconstructor.
Note this will be a breaking change as the current
(hasValue, value)
deconstructor will have to be removed.