On Fri, Apr 24, 2009 at 6:33 AM, Dimiter "malkia" Stanev
<mal...@gmail.com> 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 <esiot...@gmail.com>

--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to