toSet method

The set may contain fewer elements than the iterable,
if the iterable contains an element more than once,
or it contains one or more elements that are equal.
The order of the elements in the set is not guaranteed to be the same
as for the iterable.