Login
|
Signup
langref.org
-
csharp
and
clojure
add..
all
cpp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Maps
Access
Retrieve a value from a map
Given a map pets
{joe:cat,mary:turtle,bill:canary}
print the pet for
"joe"
(
"cat"
)
clojure
(def pets '{joe cat mary turtle bill canary})
(println (get pets 'joe))
(def pets '{joe cat mary turtle bill canary})
(println (get pets 'joe))
Submit a new solution for
csharp
or
clojure
There are 27 other solutions in
additional
languages (
cpp
,
erlang
,
fantom
,
fsharp
...)