Thanks! That was it! Blake On Oct 23, 10:24 pm, Sean Corfield <seancorfi...@gmail.com> wrote: > On Fri, Oct 21, 2011 at 4:12 PM, rugby_road <cabjh...@embarqmail.com> wrote: > > The bit-or arity seems to be limited to 2, rather than more, which > > seems to disagree with the documentation. I get "Wrong number of args > > (3) passed to: core$bit-or" for (bit-or 1 1 1). Have I misunderstood > > this operation; shouldn't it take any number of values? > > Clojure 1.3.0: > > user=> (doc bit-or) > ------------------------- > clojure.core/bit-or > ([x y] [x y & more]) > Bitwise or > nil > user=> (bit-or 1 1 1) > 1 > user=> *clojure-version* > {:major 1, :minor 3, :incremental 0, :qualifier nil} > > Clojure 1.2.1: > > user=> (doc bit-or) > ------------------------- > clojure.core/bit-or > ([x y]) > Bitwise or > nil > user=> (bit-or 1 1 1) > java.lang.IllegalArgumentException: Wrong number of args (3) passed > to: core$bit-or (NO_SOURCE_FILE:2) > user=> *clojure-version* > {:major 1, :minor 2, :incremental 1, :qualifier ""} > > So it looks like the ability to take more than two arguments was added > in 1.3.0 (and the doc-string agrees). > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View --http://corfield.org/ > World Singles, LLC. --http://worldsingles.com/ > Railo Technologies, Inc. --http://www.getrailo.com/ > > "Perfection is the enemy of the good." > -- Gustave Flaubert, French realist novelist (1821-1880)
-- 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 Note that posts from new members are moderated - please be patient with your first post. 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