Kone
Toggle table of contents
0.0.0-experiment
common
Platform filter
common
Switch theme
Search in API
Kone
kone.collections
/
dev.lounres.kone.collections.utils
/
associateBy
associate
By
inline
fun
<
T
,
K
,
V
>
KoneIterable
<
T
>
.
associateBy
(
keyEquality
:
Equality
<
K
>
=
defaultEquality()
,
keyHashing
:
Hashing
<
K
>
?
=
null
,
keyOrder
:
Order
<
K
>
?
=
null
,
keySelector
:
(
T
)
->
K
,
valueTransform
:
(
T
)
->
V
,
resolve
:
(
key
:
K
,
currentValue
:
V
,
newValue
:
V
)
->
V
)
:
KoneMap
<
K
,
V
>
(
source
)
inline
fun
<
T
,
K
>
KoneIterable
<
T
>
.
associateBy
(
keyEquality
:
Equality
<
K
>
=
defaultEquality()
,
keyHashing
:
Hashing
<
K
>
?
=
null
,
keyOrder
:
Order
<
K
>
?
=
null
,
keySelector
:
(
T
)
->
K
,
resolve
:
(
key
:
K
,
currentValue
:
T
,
newValue
:
T
)
->
T
)
:
KoneMap
<
K
,
T
>
(
source
)