Join Slack
Powered by
operator fun CompoundAmounts.plus(map2: CompoundAm...
# getting-started
b
bjonnh
08/19/2019, 7:59 PM
operator fun CompoundAmounts.plus(map2: CompoundAmounts): CompoundAmounts { val map1 = this map2.forEach { if (map1.containsKey(it.key)) { map1[it.key] = map1[it.key]!! + it.value } else { map1[it.key] = it.value } } return map1 }
Open in Slack
Previous
Next