Created
December 9, 2015 13:39
-
-
Save eldewall/d20223a5dc395bc6a1ea 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
(def options {:a ["a" "b" "c"] :b "thingy" :c {"x" [1 2 3]}}) | |
(defn option-template | |
[options] | |
(for [[k v] options] | |
(case v | |
vector? (select-field k v) | |
map? (option-template v) | |
[:label v))) | |
; funkar dock inte |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment