Created
January 3, 2016 15:04
-
-
Save ykarikos/aed640acdce59f6e9784 to your computer and use it in GitHub Desktop.
Accessing a map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user=> (def mymap {:foo 1 :bar {:subfirst 1.2 :subsecond "foo"}}) | |
#'user/mymap | |
user=> (:foo mymap) | |
1 | |
user=> (mymap :bar) | |
{:subfirst 1.2, :subsecond "foo"} | |
user=> (-> mymap :bar :subsecond) | |
"foo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment