You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used mutate instead of toXxx(mutableXxxOf()).toPersistentXxx() as the mutate function uses builders, that KotlinX Immutable Collections can optimize.
A nice addition to complement the toMap that is necessary for this suggestion would be a Map.asFlow.
The text was updated successfully, but these errors were encountered:
toPersistentList is something that we can add according to the decision in #4212 (comment). toPersistentHashMap is questionable, because we don't even have that for List or Sequence, and Flow is the next step.
This could be done fairly easily:
I used
mutate
instead oftoXxx(mutableXxxOf()).toPersistentXxx()
as themutate
function uses builders, that KotlinX Immutable Collections can optimize.A nice addition to complement the
toMap
that is necessary for this suggestion would be aMap.asFlow
.The text was updated successfully, but these errors were encountered: