title: How to get a value from a list of maps in Clojure
body: <p>I have a list of maps from which I want to retrieve the value of "field" given a certain "columnId".</p>
  
  <pre><code>(def field-to-column-mapping
     [{"field" "first_name", "columnId" "1"}
      {"field" "last_name", "columnId" "2"}
      {"field" "phone", "columnId" "3"}])
  
  
  (defn get-field-given-column [id]
    ((some #(if (= id (get % "columnId")) %)
           field-to-column-mapping)
     "field"))
  
   ;; Gets "first_name"
   (get-field-given-column "1")
  </code></pre>
  
  <p>This works, but my gut tells me there has to be a cleaner way to do it. </p>
  
  <p>Is there a better way to do it? </p>