I have a two sets of maps similar to
[{:id 101 :price 40.00} {:id 102 :price 50.00} {:id 103 :price 30.00}]
[{:id 101 :price 45.00} {:id 102 :price 50.00} {:id 103 :price 20.00}]
I am trying to match each map in the first sequence with counterpart in the second based on the "id" key so that I can determine a new price.
The logic for getting the new price seems straightforward enough, but I can't seem to get the two maps to line up. I assumed the map function would be what I need but after spending some time in the REPL, I wasn't able to produce the desired result.
Could someone please point me in the right direction?