#collections #lists #scala
lists represent a linked list
If you want to change selection, open document below and click on "Move attachment"
Scala Lists are quite similar to arrays which means, all the elements of a list have the same type but there are two important differences. First, lists are immutable, which means elements of a list cannot be changed by assignment. Second, <span>lists represent a linked list whereas arrays are flat.
The type of a list that has elements of type T is written as List[T]. For example, here are few lists defined for various data types:
// List of Strings
|status||not read|| ||reprioritisations|
|last reprioritisation on|| ||suggested re-reading day|
|started reading on|| ||finished reading on|