#collections #scala #tuples
Unlike an array or list, a tuple can hold objects with different types but they are also immutable.
If you want to change selection, open document below and click on "Move attachment"
Scala Tuplesloper's Best PracticesEffective Resume WritingComputer GlossaryWho is Who
Scala tuple combines a fixed number of items together so that they can be passed around as a whole. <span>Unlike an array or list, a tuple can hold objects with different types but they are also immutable. Here is an example of a tuple holding an integer, a string, and the console:
val t = (1, "hello", Console)
Which is syntactic sugar (short cut) for the following:
val t = new
|status||not read|| ||reprioritisations|
|last reprioritisation on|| ||suggested re-reading day|
|started reading on|| ||finished reading on|