diff --git a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt index 3f0e43adb4c..11371657298 100644 --- a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt +++ b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/MapDiff.kt @@ -82,7 +82,7 @@ fun Map.diff( */ fun MutableMap.applyDiff( from: Map, - compareFun: (K, V, V) -> Boolean = { _, first, second -> first == second } + compareFun: (K, V, V) -> Boolean ) { diff(from, compareFun).apply { removed.keys.forEach { remove(it) }