toggle menu
KAHelpers
androidJvm
switch theme
search in API
collections
/
dev.funkymuse.collections
/
swap
swap
fun
<
T
>
MutableList
<
T
>
.
swap
(
itemOne
:
T
,
itemTwo
:
T
)
Swaps the index position of two items
fun
<
T
>
List
<
T
>
.
swap
(
i
:
Int
,
j
:
Int
)
:
List
<
T
>
fun
<
T
>
MutableList
<
T
>
.
swap
(
index1
:
Int
,
index2
:
Int
)
Swaps two values