kotlin-stdlib / kotlin.collections / toHashSet toHashSet Common JVM JS Native 1.0 fun < T > Array < out T > . toHashSet ( ) : HashSet < T > (source) fun ByteArray . toHashSet ( ) : HashSet < Byte > (source) fun ShortArray . toHashSet ( ) : HashSet < Short > (source) fun IntArray . toHashSet ( ) : HashSet < Int > (source) fun LongArray . toHashSet ( ) : HashSet < Long > (source) fun FloatArray . toHashSet ( ) : HashSet < Float > (source) fun DoubleArray . toHashSet ( ) : HashSet < Double > (source) fun BooleanArray . toHashSet ( ) : HashSet < Boolean > (source) fun CharArray . toHashSet ( ) : HashSet < Char > (source) fun < T > Iterable < T > . toHashSet ( ) : HashSet < T > (source) Returns a new HashSet of all elements.