toHashSet

Returns a new HashSet of all elements.

The operation is terminal.

Since Kotlin

1.0