title: Clojure: adding to a map
body: <p>If I have a vector of maps</p>
  
  <pre><code>(def v [{:key1 "value 1" :key2 "value2"} {:key1 "value 3" :key2 "value4"}])
  </code></pre>
  
  <p>and a map</p>
  
  <pre><code>(def m {:key3 "value2" :key4 "value5"})
  </code></pre>
  
  <p>How to add map m to all the maps in vector v where the values of 2 given keys (in this case key2 and key3) are equal?</p>
  
  <p>The expected result would be this:</p>
  
  <pre><code>[{:key1 "value 1" :key2 "value2" :key3 "value2" :key4 "value5"} {:key1 "value 3" :key2 "value4"}]
  </code></pre>