Created
February 7, 2013 23:00
-
-
Save boxxxie/4735021 to your computer and use it in GitHub Desktop.
destructuring problem.
I want to convert the `body` and `content-length` into keys form, and keep the existing keys form for params
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
;;original that works | |
[{{:keys [company-id file-name ext]} :params body :body content-length :content-length}] | |
;;both of the below throw errors | |
[{{:keys [company-id file-name ext]} :params {:keys [body content-length]}}] | |
[{:keys [body content-length params] {{:keys [company-id file-name ext]} :params}}] |
gfredericks
commented
Feb 7, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment