View Problem

Retrieve a value from a map

Given a map pets {joe:cat,mary:turtle,bill:canary} print the pet for "joe" ("cat")
ExpandDiskEdit
ruby
puts map['joe']
DiskEdit
clojure
(def pets '{joe cat mary turtle bill canary})

(println (get pets 'joe))

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