val (_, _, result) = (1, 2, "Hello")println(result) // Output: Hello
numbers.map(_ * _) uses the map function to transform each element of the numbers list by multiplying it with itself.
_ * _ is a shorthand syntax for an anonymous function. In this context, it represents a function that takes two parameters and multiplies them together.
Collection
[
|
...
]