Created
June 14, 2013 15:01
-
-
Save devn/5782556 to your computer and use it in GitHub Desktop.
This file contains 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 [translations {"issue_1" "Issue One" | |
"issue_2" "Issue Two" | |
"issue_3" "Issue Three" | |
"issue_4" "Issue Four"} | |
items [{:priority "high",:issues ["issue_1" "issue_2"]} | |
{:priority "low", :issues ["issue_3" "issue_4"]}]] | |
(map (fn [m] (apply merge m)) | |
(map (fn [{:keys [priority issues]}] | |
(map (fn [issue] | |
{(get translations issue), {:priority priority, | |
:selector issue}}) | |
issues)) | |
items))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment