title: Clojure, merging two array of maps
body: <p>I have two arrays of maps </p>
  
  <p>1st is <code>[{:a 1 :b 2 :d 6} {:a 2 :b 2} {:a 7 :b 7}]</code></p>
  
  <p>2nd is <code>[{:a 3 :c 3 :e 9 :y 7} {:a 2 :b 6 :c 8}]</code></p>
  
  <p>depending on the value of <code>a</code> i.e. if its matches in 2nd array the '2nd map' should be merged with '1st map' and the resultant array of maps should be</p>
  
  <p>Res should be <code>[{:a 1 :b 2 :d 6} {:a 2 :b 6 :c 8} {:a 7 :b 7} {:a 3 :c 3 :e 9 :y 7}]</code></p>
  
  <p>Can anyone help me on this. Thanks in advance.</p>