You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Throws `InvalidOperationException` because the underlying variant is `None`.
368
+
varbad=option.UnwrapSome();
369
+
```
370
+
371
+
> **Note**:
372
+
> Unwrapping is unsafe. Use only when runtime errors are ok.
373
+
343
374
## Stateful Matching
344
375
345
-
To reduce memory allocations, use the `Match` overload that accepts a generic state parameter as its first argument. This allows your match parameter lambdas to be `static` but still flow state through:
376
+
To reduce memory allocations, use the `Match` overload that accepts a generic state parameter as its first argument.
377
+
378
+
This allows your match parameter lambdas to be `static` but still flow state through:
0 commit comments