Can Scala Pattern matching support Rust's

In Rust, we can use .. when matching on tuples. I found it is quite useful when matching on large tuples.

1 Like

The first one is 0 *: _. Because Scala’s tuples are effectively cons-typed, (first, _*, last) isn’t as natural (and doesn’t currently work).

2 Likes