toHashSet

fun <T> Sequence<T>.toHashSet(): HashSet<T>

Returns a new HashSet of all elements.

The operation is terminal.