Skip to content

Instantly share code, notes, and snippets.

@ponzao
Created February 4, 2011 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponzao/811056 to your computer and use it in GitHub Desktop.
Save ponzao/811056 to your computer and use it in GitHub Desktop.
(def person {:name "Vesa Marttila"
:address {:street "Pursimiehenkatu 21"}})
(update-in person
[:address]
merge {:postal-code "00150" :city "Helsinki"})
; -> {:name "Vesa Marttila", :address {:city "Helsinki", :postal-code "00150", :street "Pursimiehenkatu 13"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment