Tuplepatterns You can match against tuples, too. A pattern like (a, b, c) matches an arbitrary 3-tuple.
def tupleDemo(expr: Any) = expr match { case (a, b, c) => println(“matched “+ a + b + c) case _ => }
Tuplepatterns You can match against tuples, too. A pattern like (a, b, c) matches an arbitrary 3-tuple.
def tupleDemo(expr: Any) = expr match { case (a, b, c) => println(“matched “+ a + b + c) case _ => }