concept val in category clojure

appears as: vals, val, vals
Clojure: The Essential Reference

This is an excerpt from Manning's book Clojure: The Essential Reference.

  • Just take the vals of the resulting maps
  • keys and vals are two utility functions to retrieve a sequence of keys or values from a map-like type (hash-map, array-map, sorted-map, struct-map or other objects implementing the java.util.Map interface):

    (keys {:a 1 :b 2 :c 3 :d 4 :e 5 :f 6 :h 7 :i 8 :j 9}) ; #1
    ;; (:e :c :j :h :b :d :f :i :a)
    
    (vals (array-map :a 1 :b 2 :c 3 :d 4 :e 5 :f 6 :h 7 :i 8 :j 9)) ; #2
    ;; (1 2 3 4 5 6 7 8 9)

    keys and vals don’t guarantee ordering of the output which is dependent on the type of the input.

  • "val" is the value to be associated to "map".