Back to Developer Roadmap

List

src/data/roadmaps/scala/content/[email protected]

4.0793 B
Original Source

List

Lists are ordered, immutable collections of elements of the same type. Once a list is created, you can't change its elements directly; instead, you create a new list with the desired modifications. They're useful for storing sequences of items where the order matters, like a to-do list or a series of events. Common operations include adding elements to the beginning of the list (using ::), accessing elements by index, and iterating through the list.

Visit the following resources to learn more: