from

fun from(vararg elements: Long): LongHashSet

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