Let's say I have an atom containing such a map:
{:count 0 :map hash-map}
How can I use swap to merge another key-value pair into :map ?
:map
You would use assoc-in :
assoc-in
(swap! my-atom assoc-in [:map :new-key] value)