remove item from Map and return a new Map
remove item from immutable Map and return a new Map
Copy this code and paste it in your HTML
val origMap
= Map
("key1" -
> "something",
"key2" -
> "else"); val myMap
= origMap -
"key1"; //myMap looks like Map("key2" -> "else")
Report this snippet
Comments
Subscribe to comments