mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-18 22:33:49 +00:00
fix in new applyDiff
This commit is contained in:
parent
13d0e1b682
commit
149a1aa278
@ -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) }
|
||||
|
Loading…
Reference in New Issue
Block a user