Given the following List of tuples:
val pastries = List(("Chocolate Cupcake", 2.50),
("Vanilla Cupcake", 2.25),
("Plain Muffin", 3.25))
Pattern matching can be used to handle each element differently:
pastries foreach { pa...