summaryrefslogblamecommitdiff
path: root/test/files/run/matchonseq.scala
blob: 49b406a6ec5c565df73bd5cf3e5042f344ecac4a (plain) (tree)
1
2
3
4
5
6
7
8







                                                           
object Test extends App{
  Vector(1,2,3) match { 
   case head +: tail => println("It worked! head=" + head) 
  }
  Vector(1,2,3) match { 
   case init :+ last => println("It worked! last=" + last) 
  }
}