On Oct 25, 10:27 am, "V.Quixote" <[EMAIL PROTECTED]> wrote:
> I'd like some version of doto that works on bare Classes

(defmacro sdoto
  "Version of doto for use with static methods"
  [x & methods]
  `(do
     ~@(map (fn [m] (list '. x m))
            methods)
     ~x))

Here you go. sdoto for "static doto".

/mac

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to