1.3.0 permalink Arrow_down_16x16

short

clojure.core

  • (short x)
Coerce to short

1 Example top

  • user=> (class (short 1))
    java.lang.Short
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:3084 top

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

Comments top

No comments for short. Log in to add a comment.