View Problem

Add an entry to a map

Given an empty pets map, add the mapping from "rob" to "dog"
DiskEdit
python
pets['rob'] = 'dog'
ExpandDiskEdit
fsharp
pets <- (Map.add "rob" "dog" pets)
ExpandDiskEdit
fsharp
pets.Add("rob", "dog")

Submit a new solution for python or fsharp
There are 19 other solutions in additional languages (clojure, cpp, erlang, fantom ...)