mutableSetOf
Creates a fresh mutable HashSet containing the distinct supplied elements.
Equal elements coalesce, retaining the first stored element. Arguments are evaluated once in source order before population performs hashing or equality. Iteration order is unspecified. Guest Kotlin supports direct vararg arguments; spread arguments remain unavailable.
Return
a new mutable set, empty when no elements are supplied.
Parameters
elements
values to insert in argument order.
Type Parameters
T
element type.