user=> (bit-or 2r1100 2r1001) 13 ;; 13 = 2r1101 ;; the same in decimal user=> (bit-or 12 9) 13
(defn bit-or "Bitwise or" {:inline (nary-inline 'or) :inline-arities >1? :added "1.0"} ([x y] (. clojure.lang.Numbers or x y)) ([x y & more] (reduce1 bit-or (bit-or x y) more)))
Comments top
No comments for bit-or. Log in to add a comment.