Re: map across code

2009-02-15 Thread Meikel Brandmeyer
Hi, Am 15.02.2009 um 03:18 schrieb kyle smith: I'd like to do something like (map a-macro some-code) What I can't do is (map #(a-macro %) some-code) because % evals each code fragment. 1:1 user=> (map (var-get #'declare) [x y z]) ((do (def x)) (do (def y)) (do (def z))) I suppose you want to

Re: map across code

2009-02-15 Thread Konrad Hinsen
On 15.02.2009, at 03:07, kyle smith wrote: > I'm trying to map across code, but map evals each item in the list. > I've been trying to re-implement map as a macro, but so far no > success. Is there some way to accomplish this? I am not sure I understand 100% what you want

Re: map across code

2009-02-14 Thread Stuart Sierra
On Feb 14, 9:07 pm, kyle smith wrote: > I'm trying to map across code, but map evals each item in the list. > I've been trying to re-implement map as a macro, but so far no > success.  Is there some way to accomplish this? clojure.contrib.template/do-template may do what

Re: map across code

2009-02-14 Thread kyle smith
Well, I'm just doing some exploratory programming, so I don't really have anything yet. I'd like to do something like (map a-macro some-code) What I can't do is (map #(a-macro %) some-code) because % evals each code fragment. --~--~-~--~~~---~--~~ You received this

Re: map across code

2009-02-14 Thread Stephen C. Gilardi
On Feb 14, 2009, at 9:07 PM, kyle smith wrote: I'm trying to map across code, but map evals each item in the list. I've been trying to re-implement map as a macro, but so far no success. Is there some way to accomplish this? Could you post a short example of the input and output

map across code

2009-02-14 Thread kyle smith
I'm trying to map across code, but map evals each item in the list. I've been trying to re-implement map as a macro, but so far no success. Is there some way to accomplish this? --~--~-~--~~~---~--~~ You received this message because you are subscri