Clojure: just return the value

Is there any built-in Clojure function that just returns the value passed to it? Equivalent

(defn just-val [x] x)

?

+5
source share
1 answer

Yes there is an identification function: http://clojuredocs.org/clojure_core/clojure.core/identity

user=> (identity 4)
4
+10
source

All Articles