View Problem

Add an entry to a map

Given an empty pets map, add the mapping from "rob" to "dog"
ExpandDiskEdit
ruby
pets['rob']='dog'
ExpandDiskEdit
fantom
map["rob"] = "dog"
DiskEdit
clojure
(assoc {} 'rob 'dog)

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