kotlin-stdlib
Common
kotlin-stdlib
/
kotlin.collections
/
toCollection
to
Collection
fun
<
T
,
C
:
MutableCollection
<
in
T
>
>
Array
<
out
T
>
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Byte
>
>
ByteArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Short
>
>
ShortArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Int
>
>
IntArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Long
>
>
LongArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Float
>
>
FloatArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Double
>
>
DoubleArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Boolean
>
>
BooleanArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
C
:
MutableCollection
<
in
Char
>
>
CharArray
.
toCollection
(
destination
:
C
)
:
C
(
source
)
fun
<
T
,
C
:
MutableCollection
<
in
T
>
>
Iterable
<
T
>
.
toCollection
(
destination
:
C
)
:
C
(
source
)
Appends all elements to the given
destination
collection.