What would be the result of the matching expression below?
Map('a' -> 1, 'b' -> 2, 'c' -> 3) match
case m if m.contains('b') => println(m.last._2)
case m if m.values.size == 3 => println(m.head._2)
case _ => println(0)What would be the result of the matching expression below?
Map('a' -> 1, 'b' -> 2, 'c' -> 3) match
case m if m.contains('b') => println(m.last._2)
case m if m.values.size == 3 => println(m.head._2)
case _ => println(0)Create a free account to access the full topic