kotlin-stdlib
Common
kotlin-stdlib
/
kotlin.collections
/
toHashSet
to
Hash
Set
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.