hashSetOf

fun <T> hashSetOf(vararg elements: T): HashSet<T>(source)

Returns a new HashSet with the given elements.

Since Kotlin

1.0