This is a special type of collection that does not support duplication. It contains lists of unique values. Just like lists, there are two types of sets in Kotlin:
- Immutable sets
- Mutable sets
In this section, we will start by looking at the immutable set.