On Sunday 21 December 2008 15:14, ntu...@googlemail.com wrote:
> Why do "bit-or" and "bit-and" only accept 2 arguments? "or" and "and"
> accept an arbitrary number and I think it is useful to modifiy "bit-
> or" and "bit-and" to accept 2 or more, for example:
>
> (defn my-bit-or [x y & rest]
>   (reduce #(clojure.lang.Numbers/or %1 %2) (list* x y rest)))
>
> What does the group think?

The group thinks only in group-think, and hence is meaningless...

But I (the individual) agree, modulo a proper overloading pattern to 
afford minimal overhead for the two-argument form.


RRS

--~--~---------~--~----~------------~-------~--~----~
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