Is there a more concise way to merge two immutable...
# announcements
d
Is there a more concise way to merge two immutable maps in Kotlin as I have done here:
Copy code
fun <K, V> combine(map1: Map<K, V>, map2: Map<K, V>): Map<K, V> {
        val combined = mutableMapOf<K, V>()
        map1.forEach { combined[it.key] = it.value }
        map2.forEach { combined[it.key] = it.value }
        return combined
    }