Tuple

val ingredient = ("Sugar" , 25)
  • A tuple is a value that contains a fixed number of elements, each with a distinct type.
  • Tuples are immutable.
  • Tuples are especially handy for returning multiple values from a method.

Tuple — Structure map

Clickable & Draggable!

Tuple — Related pages: