store/[org.clojure/clojure "1.8.0"] clj::clojure.core/byte

Official Documentation

Add notes
Arities
==================================================
   [x]

Docstring
==================================================
  Coerce to byte

Source

(defn byte
  "Coerce to byte"
  {:inline (fn  [x] `(. clojure.lang.RT (~(if *unchecked-math* 'uncheckedByteCast 'byteCast) ~x)))
   :added "1.0"}
  [^Number x] (clojure.lang.RT/byteCast x))

Example 1

Edit
(def x (byte-array [(byte 0x43) 
                    (byte 0x6c)
                    (byte 0x6f)
                    (byte 0x6a)
                    (byte 0x75)
                    (byte 0x72)
                    (byte 0x65)
                    (byte 0x21)]))
;; => #'user/x

(String. x)
;; => "Clojure!"

Uses on crossclj