kalium
common
logic
/
com.wire.kalium.logic.util
/
safeComputeAndMutateSetValue
safe
Compute
And
Mutate
Set
Value
fun
<
K
,
V
>
<Error class: unknown class>
<
K
,
MutableSet
<
V
>
>
.
safeComputeAndMutateSetValue
(
key
:
K
,
f
:
(
)
->
V
)
:
MutableSet
<
V
>
Convenience method to compute a {K, Set
} map mutating the collection with f() if the key is present.