blob: f6f320245a91d3c43140f84fee3ee552fe406302 (
plain) (
tree)
|
|
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)
}
}
|