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'
DiskEdit
clojure
(assoc {} 'rob 'dog)
ExpandDiskEdit
fantom
map["rob"] = "dog"

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