Created
October 26, 2016 11:33
-
-
Save ponkore/86c54e009e3c179b825555d45a3c7666 to your computer and use it in GitHub Desktop.
名前空間付きキーワードを持つ map の binding
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
;; | |
;; keyword with namespace | |
;; | |
(let [{:keys [app/title]} {:app/title "aabb"}] title) | |
;; => "aabb" | |
(let [{:keys [a.p.p/title]} {:a.p.p/title "aabb"}] title) | |
;; => "aabb" | |
(let [{:keys [a.p.p/title]} {:a.p.p/title "aabb"}] title) | |
;; => "aabb" | |
(let [{:keys [a.p.p/title]} {:title "aabb"}] title) | |
;; => nil | |
(let [{:keys [title]} {:a.p.p/title "aabb"}] title) | |
;; => nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment