View Problem

Add an entry to a map

Given an empty pets map, add the mapping from "rob" to "dog"
ExpandDiskEdit
scala
pets += "rob" -> "dog"

Submit a new solution for scala
There are 21 other solutions in additional languages (clojure, cpp, erlang, fantom ...)