val

added
1.0

ns
clojure.core

type
function

(val e)

Returns the value in the map entry.

                ;; emulate 'vals'
(map val {:a 1 :b 2})
;;=> (1 2)

            
                (val (first {:one :two}))
;;=> :two
            
                ;syntactic sugar for (val)
(:doc (meta #'meta))
            
                ;; extracts the key of a map entry
(val (clojure.lang.MapEntry. :a :b))
;;=> :b