Last active
December 28, 2015 01:19
-
-
Save ajorgensen/7420144 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
(defmapfn to-json [json_keys & args] | |
"Takes keys and values and emit json strings based on those key value pairs. The size of json_keys should be the same | |
size as args. Usage: (to-json ['foo' 'bar'] ?v1 ?v2 :> ?json)" | |
(json/generate-string (zipmap json_keys args))) | |
=> fieldDeclaration must be the same size as the given values |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment