Core concept
val pair = ("Ada", 42)
val (name, age) = pair
pair._1 // "Ada"Advertisement
How it works
Overuse hurts readability. Case class often better for meaning.
Advertisement
Trade-offs + gotchas
Small ad-hoc grouping. Return multiple from function.