Re: using a macro like a function

2010-10-27 Thread Ken Wesson
On Wed, Oct 27, 2010 at 7:53 AM, Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hello everybody, > > I would like to do something like the following .. > > (->> "create" clojure.repl/apropos (map doc)) > > but I can't do it since doc is a macro and not a function.. how would one > wrap

Re: using a macro like a function

2010-10-27 Thread Sunil S Nandihalli
Thanks Meikel.. so it looks like doc was written as a macro since they wanted to avoid people having to quote the symbol when called from the repl.. or is there any other reason also? Sunil. On Wed, Oct 27, 2010 at 5:28 PM, Meikel Brandmeyer wrote: > Hi, > > On 27 Okt., 13:53, Sunil S Nandihal

Re: using a macro like a function

2010-10-27 Thread Meikel Brandmeyer
Hi, On 27 Okt., 13:53, Sunil S Nandihalli wrote: > I would like to do something like the following .. > >  (->> "create" clojure.repl/apropos (map doc)) > > but I can't do it since doc is a macro and not a function.. how would one > wrap doc with a function so that it can be used in the above ex

using a macro like a function

2010-10-27 Thread Sunil S Nandihalli
Hello everybody, I would like to do something like the following .. (->> "create" clojure.repl/apropos (map doc)) but I can't do it since doc is a macro and not a function.. how would one wrap doc with a function so that it can be used in the above example. Thanks Sunil. -- You received this