On Fri, Apr 24, 2009 at 6:33 AM, Dimiter "malkia" Stanev <[email protected]> wrote: > > Here's even more concise version: > > (defmacro mo [op & args] > (reduce (fn [& ab#] (cons op ab#)) args))
Or maybe just: (defn mo [op & args] (reduce op args)) I don't think that's the point, though. Why not allow bit-and and bit-or to accept multiple arguments? I don't see how doing so would break any existing code or be a bad idea. -- Michael Wood <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
