I am new to clojure. I want to use quote in clojure the following way:
First I define a variable:
(def dog "animal")
And then a function::
(defn what-is [name]
('name (str " is an " name)))
If I call the function what-is with the variable dog as the parameter: (what-is dog)
The result should be:
USER>> dog is an animal
Here I returned the name of the argument I passed to the function what-is, not its value:
What I get instead is:
is an animal
no mention of the parameter dog here.
Again what I am looking for is to repeat "literally" the name of the parameter I pass the function, as in this template:
(what-is x )=> x is an ...
Thank you.