ClojureDocs

Nav

Namespaces

key

clojure.core

Available since 1.0 (source)
  • (key e)
Returns the key of the map entry.
2 Examples
;; the following emulates 'keys'
(map key {:a 1 :b 2})
;;=> (:a :b)
;; extracts the key of a map entry
(key (clojure.lang.MapEntry. :a :b))
;;=> :a
See Also

Returns a sequence of the map's keys, in the same order as (seq map).

Added by mmwaikar

Returns the value in the map entry.

Added by phreed

Returns a lazy sequence consisting of the result of applying f to the set of first items of each c...

Added by MicahElliott

keyval => key val Returns a new hash map with supplied mappings. If any keys are equal, they ar...

Added by MicahElliott
0 Notes
No notes for key