toHashSet

Return a HashSet containing all the elements of this sequence.

The operation is terminal.