KiteCore
Toggle table of contents
0.1.0
Guide
GitHub
common
Target filter
common
Switch theme
Search in API
Skip to content
KiteCore
kitecore
/
io.github.yuroyami.kitecore.util
/
swapped
swapped
fun
<
A
,
B
>
Pair
<
A
,
B
>
.
swapped
(
)
:
Pair
<
B
,
A
>
Returns a new
Pair
with the components exchanged.
val (value, key) = (key to value).swapped()
Content copied to clipboard