I have several immutable map records like :
val map = Map("number"->7,"name"->"Jane","city"->"New York")
I need to identify the "name" key for each record and check its value.If value is "Jane" , I need to replace with "Doe" and update the map record.
This can be achieved by a simple map operation and pattern matching.