How to get value from Scala map:
val test = Map(abc -> 1 , xxx -> 2 , ccc -> 3 )
val input = xxx
How to match input in Test map and get output which should be 2 in this example?
3
How to get value from Scala map:
val test = Map(abc -> 1 , xxx -> 2 , ccc -> 3 )
val input = xxx
How to match input in Test map and get output which should be 2 in this example?
3