toHashSet

Returns a new HashSet of all elements.

The operation is terminal.