Kotlin CollectionsCollections in Kotlin are used to store group of related objects in a single unit. By using collection, we can store, retrieve manipulate and aggregate data. Types of Kotlin CollectionsKotlin collections are broadly categories into two different forms. These are:
Immutable Collection:Immutable collection also called Collection supports read only functionalities. Methods of immutable collection that supports read functionalities are:
Mutable Collection:Mutable collections supports both read and write functionalities. Methods of mutable collections that supports read and write functionalities are:
Next TopicList: listOf()
|