concept int in category clojure

appears as: int, ints, int
Clojure: The Essential Reference

This is an excerpt from Manning's book Clojure: The Essential Reference.

Bitwise operators can be divided into groups based on their input. Unless otherwise specified, arguments have to be of type byte, short, int or long and cannot be nil:

BigDecimal does not have a constructor with a java.lang.Long parameter but it does contain one for primitive int or long. The problem from Clojure’s perspective is that both are possible as the boxed type Long could downcast to primitive int or long without loss of precision. Passing a primitive long solves the problem:

(def int-a (int-array 5))
(def double-a (double-array 5))

(aset-int double-a 0 99) ; #1
;; 99

(aset-double int-a 0 99.0) ; #2
;; IllegalArgumentException argument type mismatch