Last active
December 29, 2016 14:10
-
-
Save craftybones/cd06557b01e94aa605d8a06958d26c6e to your computer and use it in GitHub Desktop.
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
(defn foo [x y] | |
`(intern *ns* ~x ~y)) | |
(defmacro def-symbols-across-range | |
[[from step] & symbols] | |
(list* 'do | |
(map foo symbols (range)))) | |
;; updated | |
(defn foo [x y] | |
`(intern *ns* (quote ~x) ~y)) | |
(defmacro def-symbols-across-range | |
[[from step] & symbols] | |
(list* 'do | |
(map foo symbols (range)))) | |
;; I want to say | |
;; (def-symbols-across-range [1 3] | |
;; foo | |
;; bar | |
;; etc) | |
;; I don't want to say | |
;; (def-symbols-across-range [1 3] | |
;; 'foo | |
;; 'bar | |
;; 'etc) | |
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.