I am new to Clojure. I have a vector of maps:
(def vecmap [{:a "hello"} {:a "hi"} {:a "hey"}])
Basically I want to check if a given value is present in the vector of maps. I have used this:
(doseq [r vecmap] (get-in r [:a]))
This will get me all the values of key :a
. But then I would want to place all these values in a vector so that I could check if a given value is present in the vector using contains? How can I do this in Clojure?
contains?
won't do what you think. – galdre