stdlib
1.8
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
Common
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.
Since Kotlin
1.2