Allow nil as an answer.

This commit is contained in:
Colin Jones
2011-02-03 12:26:58 -06:00
parent 1648d9e94a
commit f29e547f2a
3 changed files with 6 additions and 2 deletions

View File

@@ -24,6 +24,9 @@
(= __ ({2006 "Torino" 2010 "Vancouver" 2014 "Sochi"} 2010))
"You may not be able to find an entry for a key"
(= __ (get {:a 1 :b 2} :c))
"But you can provide your own default"
(= __ (get {:a 1 :b 2} :c :key-not-found))
"You can find out if a key is present"