Set is a collection of distinct objects. If you try to add two or more objects
Set that are equal (
a == b), the second and subsequent ones are ignored.
List, the default creation function for
setOf()) creates an
mutableSetOf() to create a
Set that you can modify after
You can learn more about this in: