collection interfaces
The Kotlin Standard Library has a set of interfaces that help define what’s expected of a particular type. Each of these interfaces provides certain guarantees on characteristics and performance. Of these set of interfaces, four are referred to as collection interfaces.
complexity
How well will it scale?
linked list
A linked list is a collection of values arranged in a linear, unidirectional sequence. A linked list has several theoretical advantages over contiguous storage options such as the Kotlin Array or ArrayList:
list performance
Aside from being a random-access collection, there are other areas of performance that are of interest on how well or poorly does the data structure fare when the amount of data it contains needs to grow. For lists, this varies on two factors.
map
A Map is another generic collection that holds key-value pairs. For example, here’s a map containing a user’s name and a score:
mutable vs. immutable
There’s a distinction between mutable and immutable data structures in Kotlin.