toHashSet
fun <T> Array<out T>.toHashSet(): HashSet<T>
fun ShortArray.toHashSet(): HashSet<Short>
fun FloatArray.toHashSet(): HashSet<Float>
fun DoubleArray.toHashSet(): HashSet<Double>
fun BooleanArray.toHashSet(): HashSet<Boolean>
Returns a HashSet of all elements.