Created
November 26, 2015 12:10
-
-
Save stoeckley/00a37a186f1379b10adf to your computer and use it in GitHub Desktop.
destructure as vector elements of map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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