If you have two maps (one is mutable, the other is immutable), how would you multiply the values of one with the corresponding values of the other?
For example:
val testA = scala.collection.mutable.Map("£2" -> 3, "£1" -> 0,
"50p" -> 4, "20p" -> 0, "10p" -> 0, "5p" -> 0)
val testB = scala.collection.immutable.Map("£2" -> 2, "£1" -> 1,
"50p" -> 0.5, "20p" -> 0.2, "10p" -> 0.1, "5p" -> 0.05)
Expecting a result of:
val total = scala.collection.immutable.Map("£2" -> 6, "£1" -> 0,
"50p" -> 2, "20p" -> 0, "10p" -> 0, "5p" -> 0)`