x and y are extracted from the tuple:
val (x, y) = (1337, 42)
// x: Int = 1337
// y: Int = 42
To ignore a value use _:
val (_, y: Int) = (1337, 42)
// y: Int = 42
To unpack an extractor:
val myTuple = (1337, 42)
myTuple._1 // res0: Int = 1337
myTuple._2 // res1: Int = 42
Note that...