πŸ“š Kotlin Collections

Kotlin Collections are containers that hold multiple values β€” like lists, sets, and maps. Let’s try some examples:

πŸ“ List Example

Output will appear here...

πŸ“ Set Example

Output will appear here...

πŸ“ Map Example

Output will appear here...
πŸ’‘ Tip: Use listOf(), setOf(), and mapOf() for read-only collections. Mutable versions are mutableListOf(), mutableSetOf(), and mutableMapOf().