Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created July 4, 2009 22:24
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 jackdempsey/140751 to your computer and use it in GitHub Desktop.
Save jackdempsey/140751 to your computer and use it in GitHub Desktop.
user=> (def foo {:a 1 :e {:b 2 :c #{} } } )
#'user/foo
user=> (update-in foo [:e :c] conj "foo")
{:a 1, :e {:b 2, :c #{"foo"}}}
user=> (update-in foo [:e :c] conj "bar")
{:a 1, :e {:b 2, :c #{"bar"}}}
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment