Collections and Generics
摘要
In Kotlin, collections are used to store and manipulate data or objects. Collections are used in real-world applications to efficiently store, retrieve, and update data. Some examples of real-world applications are shopping carts, game development, and social media feeds. There are many types of collections available in Kotlin, as follows: