Created
April 17, 2010 12:11
-
-
Save vu3rdd/369502 to your computer and use it in GitHub Desktop.
This file contains 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
(def d {:name "Ram", :job "Engineer", :age 16}) | |
;=> #'user/d | |
(:name d) | |
;=> "Ram" | |
;; we don't have location as a key in the map | |
(:location d) | |
;=> nil | |
;; You can give a default value to return (as a third parameter) | |
;; if the key is not found in the map | |
(:location d "Bangalore") | |
;=> "Bangalore" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment