fix in new applyDiff

This commit is contained in:
InsanusMokrassar 2023-05-05 11:33:22 +06:00
parent 13d0e1b682
commit 149a1aa278

View File

@ -82,7 +82,7 @@ fun <K, V> Map<K, V>.diff(
*/
fun <K, V> MutableMap<K, V>.applyDiff(
from: Map<K, V>,
compareFun: (K, V, V) -> Boolean = { _, first, second -> first == second }
compareFun: (K, V, V) -> Boolean
) {
diff(from, compareFun).apply {
removed.keys.forEach { remove(it) }