• (bit-or x y)
  • (bit-or x y & more)
Bitwise or

1 Example top

  • user=> (bit-or 2r1100 2r1001)
    ;; 13 = 2r1101
    ;; the same in decimal
    user=> (bit-or 12 9)
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:1237 top

(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)))
Vars in clojure.core/bit-or:
Used in 0 other vars

Comments top

No comments for bit-or. Log in to add a comment.