You're viewing version 1.2.0 of bit-or. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

bit-or

clojure.core

  • (bit-or x y)
Bitwise or

1 Example top

  • user=> (bit-or 2r1100 2r1001)
    13
    ;; 13 = 2r1101
    
    ;; the same in decimal
    user=> (bit-or 12 9)
    13
    
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:1037 top

(defn bit-or
  "Bitwise or"
  {:inline (fn [x y] `(. clojure.lang.Numbers (or ~x ~y)))
   :added "1.0"}
  [x y] (. clojure.lang.Numbers or x y))
Vars in clojure.core/bit-or: defn or
Used in 2 other vars CONCAVE_POLYGON CONVEX_POLYGON

Comments top

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