Return to Snippet

Revision: 59660
at September 23, 2012 03:34 by pligor


Initial Code
val origMap = Map("key1" -> "something", "key2" -> "else");
val myMap = origMap - "key1";
//myMap looks like Map("key2" -> "else")

Initial URL

                                

Initial Description
remove item from immutable Map and return a new Map

Initial Title
remove item from Map and return a new Map

Initial Tags

                                

Initial Language
Scala