clojure.core/get¶
Returns the value mapped to key, not-found or nil if key not present in associative collection, set, string, array, or ILookup instance.
Examples¶
Note by Pierre-Thibault¶
Why is this character/string?
Note by hgijeon¶
(:mykey my-hash-map :none) means the same as (get my-hash-map :mykey :none) and
('mysym my-hash-map :none) means the same as (get my-hash-map 'mysym :none).
So, you can use (:a {:a 1 :b 2} :not-inserted) as (get {:a 1 :b 2} :a :not-inserted).
See
http://clojure.org/data_structures#Data Structures-Keywords and
http://clojure.org/data_structures#Data Structures-Symbols
Note by navigaid¶
(get get get get) is equivalent to get
as in:
See also¶
- clojure.core/map-indexed (4)
- clojure.core/get-in (5)
- clojure.core/find (2)
- clojure.core/select-keys (5)
- clojure.core/nth (1)
Content from the matching ClojureDocs page, with authors credited on each contribution.