Skip to content

Instantly share code, notes, and snippets.

@cowlike
Created July 20, 2015 23:22
Show Gist options
  • Save cowlike/e25e134e02f31b09aaae to your computer and use it in GitHub Desktop.
Save cowlike/e25e134e02f31b09aaae to your computer and use it in GitHub Desktop.
destructuring
(let [a-map {:l1 {:x \y :l2 {:l3 {:a 1 :b 2}}}}
{{val-x :x {{:keys [a b]} :l3} :l2} :l1} a-map]
(prn b val-x))
;; 2 \y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment