...

/

Tuples and Maps

Tuples and Maps

Learn about tuples and maps in Scala.

Tuples

Scala has built-in support for tuples. A Tuple is a typed data structure for holding a number of elements (up to 22 in Scala). Tuples are useful whenever you are handling multiple related values, but don’t need all of the overhead of creating a new class.

Creating a Tuple is ...

Access this course and 1400+ top-rated courses and projects.