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
- Pattern-matching on _exactly_`N` simple patterns with types `T1, T1, ..., T1`, where `N` is the runtime size of the sequence, or
82
+
- Pattern-matching on `>= N` simple patterns and _a vararg pattern_ (e.g., `xs: _*`) with types `T1, T1, ..., T1, Seq[T1]`, where `N` is the minimum size of the sequence.
72
83
73
84
<!-- To be kept in sync with tests/new/patmat-spec.scala -->
74
85
@@ -87,7 +98,7 @@ object CharList {
87
98
```
88
99
89
100
90
-
## Name Based Pattern
101
+
## Name-based Pattern
91
102
92
103
- Extractor defines `def unapply(x: T): U`
93
104
-`U` has (parameterless `def` or `val`) members `isEmpty: Boolean` and `get: S`
0 commit comments