user=> (class (short 1)) java.lang.Short
Coerce to int
Coerce to byte
Casts to shorts[]
Creates an array of shorts
(defn short "Coerce to short" {:inline (fn [x] `(. clojure.lang.RT (~(if *unchecked-math* 'uncheckedShortCast 'shortCast) ~x))) :added "1.0"} [^Number x] (clojure.lang.RT/shortCast x))
Comments top
No comments for short. Log in to add a comment.