is there some way to extract the parameter list from a function

2012-01-13 Thread Andrew Xue
given something like (defn my-func [a b c] (str a b c)) is there something like (extract-parameters my-func) which returns (a b c)? thanks, andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: is there some way to extract the parameter list from a function

2012-01-13 Thread Baishampayan Ghose
Something like (:arglists (meta #'my-func)) ? Regards, BG On Sat, Jan 14, 2012 at 12:01 PM, Andrew Xue wrote: > given something like > > (defn my-func [a b c] (str a b c)) > > is there something like (extract-parameters my-func) which returns (a > b c)? > > thanks, > andy > > -- > You received t

Re: is there some way to extract the parameter list from a function

2012-01-14 Thread Andrew Xue
that is exactly what i was looking for ! thanks! On Jan 14, 1:33 am, Baishampayan Ghose wrote: > Something like (:arglists (meta #'my-func)) ? > > Regards, > BG > > > > > > > > > > On Sat, Jan 14, 2012 at 12:01 PM, Andrew Xue wrote: > > given something like > > > (defn my-func [a b c] (str a b c