summaryrefslogblamecommitdiff
path: root/test/files/run/matchonseq.scala
blob: f6f320245a91d3c43140f84fee3ee552fe406302 (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)
  }
}