Last active
August 29, 2015 14:04
-
-
Save celwell/552318c5c08fc5a2bff2 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
(-> test-results | |
(->> (map #(list (:id %) (:prefill_config %)))) | |
flatten | |
(->> (apply hash-map)) | |
keywordize-keys | |
(select-keys (map keyword current-form-ids))) |
Ended up with:
(->> test-results
(filter #(contains? (set current-form-ids) (:id %)))
(mapcat (juxt (comp keyword :id) :prefill_config)))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example INPUT:
Example OUTPUT: