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.map
/
associateBy
associate
By
inline
fun
<
Element
,
Key
>
KoneIterable
<
Element
>
.
associateBy
(
keyEquality
:
Equality
<
Key
>
=
defaultEquality()
,
keyHashing
:
Hashing
<
Key
>
?
=
null
,
keyOrder
:
Order
<
Key
>
?
=
null
,
keySelector
:
(
Element
)
->
Key
)
:
KoneMap
<
Key
,
Element
>
(
source
)
inline
fun
<
Element
,
Key
,
Value
>
KoneIterable
<
Element
>
.
associateBy
(
keyEquality
:
Equality
<
Key
>
=
defaultEquality()
,
keyHashing
:
Hashing
<
Key
>
?
=
null
,
keyOrder
:
Order
<
Key
>
?
=
null
,
keySelector
:
(
Element
)
->
Key
,
valueTransform
:
(
Element
)
->
Value
)
:
KoneMap
<
Key
,
Value
>
(
source
)