Browse topics
Kotlin Intermediate
Collections Intro
Lists, sets, maps and common collection operations.
kotlin collections introList Basics in KotlinList is an ordered collection of elements. A Kotlin example with source code and sample output.kotlin collections introMutable List in KotlinmutableListOf() creates a list that supports add, remove and update operations. A Kotlin example with source code and sample output.kotlin collections introSet Basics in KotlinSet stores unique elements without guaranteed order (for hash sets). A Kotlin example with source code and sample output.kotlin collections introMap Basics in KotlinMap stores key-value pairs. A Kotlin example with source code and sample output.kotlin collections introCollection Iteration in KotlinCollections can be iterated using for loops. A Kotlin example with source code and sample output.kotlin collections introCollection Size and Empty Check in KotlinThe size property returns the number of elements. A Kotlin example with source code and sample output.
Related topics
Null Safety Nullable types, safe casts, let, lateinit and null handling in Kotlin. Kotlin Strings String basics, templates, comparison, substring and raw strings. Kotlin Arrays Declare, initialize, access and iterate arrays in Kotlin. Packages & Imports Organize code with packages, imports and visibility modifiers. Exception Handling try-catch, finally, throw, custom exceptions and try expressions. Type Features Type aliases, destructuring declarations and related Kotlin type syntax.