from

fun from(vararg elements: Int): IntHashSet

Create a set from a variable number of arguments or an array of int. The elements are copied from the argument to the internal buffer.