This might possible in CLJS (?), but I don't think you can recover the source in Clojure.
Thanks, Ambrose On Wed, Jun 20, 2012 at 11:13 PM, Rogier Peters <[email protected]>wrote: > Hi, > > With all the higher-order functions in the new reducers, I was > wondering if it is possible to print a generated function, like using > (source f). > > This doesn't work: > user=> (defn f[x] (fn[y] (+ y x))) > #'user/f > user=> (def plus5 (f 5)) > #'user/plus5 > user=> (source plus5) > Source not found > nil > > > > -- > Rogier Peters > rogier@twitter, flickr, delicious > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
