• (val e)
Returns the value in the map entry.

3 Examples top

  • user=> (map val {:a 1 :b 2})
    (1 2)
    
  • (val (first {:one :two}))
    :two
  • ;syntactic sugar for (val)
    (:doc (meta #'meta))
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:1467 top

(defn val
  "Returns the value in the map entry."
  {:added "1.0"
   :static true}
  [^java.util.Map$Entry e]
    (. e (getValue)))
Vars in clojure.core/val:
Used in 0 other vars

Comments top

1 comment(s) for val.

This is my first attempt at using this site to gain an understanding of a closure function. Two of the examples above seem incorrect.

Example 3(?) seems to have nothing to do with val

(notice the lack of example identifiers)

Log in to add a comment.