Skip to content

Instantly share code, notes, and snippets.

@stoeckley
Created November 26, 2015 12:10
Show Gist options
  • Select an option

  • Save stoeckley/00a37a186f1379b10adf to your computer and use it in GitHub Desktop.

Select an option

Save stoeckley/00a37a186f1379b10adf to your computer and use it in GitHub Desktop.
destructure as vector elements of map
(let [[[a b]] (seq {:a 22})]
[a b])
=> [:a 22]
;; could also use vec instead of seq, but seq is more generic for this case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment