mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
clojure.html.markdown: Fix an error (s/value/key)
This commit is contained in:
parent
626e963aa9
commit
9a4721785c
@ -205,7 +205,7 @@ keymap ; => {:a 1, :c 3, :b 2}
|
|||||||
;("a" stringmap)
|
;("a" stringmap)
|
||||||
; => Exception: java.lang.String cannot be cast to clojure.lang.IFn
|
; => Exception: java.lang.String cannot be cast to clojure.lang.IFn
|
||||||
|
|
||||||
; Retrieving a non-present value returns nil
|
; Retrieving a non-present key returns nil
|
||||||
(stringmap "d") ; => nil
|
(stringmap "d") ; => nil
|
||||||
|
|
||||||
; Use assoc to add new keys to hash-maps
|
; Use assoc to add new keys to hash-maps
|
||||||
|
Loading…
Reference in New Issue
Block a user