kotlin-stdlib / kotlin.collections / hashSetOf hashSetOf Common JVM JS Native 1.1 fun <T> hashSetOf(): HashSet<T> Returns an empty new HashSet. Common JVM JS Native 1.0 fun <T> hashSetOf(vararg elements: T): HashSet<T> Returns a new HashSet with the given elements.