Well, you can pattern-match any sequence:
case Seq(a, b, rest @ _ *) =>
For example:
scala> def mtch(s: Seq[Int]) = s match {
| case Seq(a, b, rest @ _ *) => println("Found " + a + " and " + b)
| case _ => println("Bah")
| }
mtch: (s: Seq[Int])Unit
Then this will match any sequence with more than (or equal to) 2 elements
scala> mtch(List(1, 2, 3, 4))
Found 1 and 2
scala> mtch(Seq(1, 2, 3))
Found 1 and 2
scala> mtch(Vector(1, 2))
Found 1 and 2
scala> mtch(Vector(1))
Bah
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…