mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-11 13:56:16 +00:00
13 lines
329 B
Kotlin
13 lines
329 B
Kotlin
package collections
|
|
|
|
internal expect fun <K, V> MutableMap<K, V>.kmpMerge(
|
|
key: K,
|
|
value: V,
|
|
remappingFunction: (oldValue: V, newValue: V) -> V,
|
|
)
|
|
|
|
internal fun <K, V> MutableMap<K, V>.merge(
|
|
key: K,
|
|
value: V,
|
|
remappingFunction: (oldValue: V, newValue: V) -> V,
|
|
) = kmpMerge(key, value, remappingFunction) |