concept int in category clojure
appears as: int, ints, int

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,intorlongand cannot benil:
BigDecimaldoes not have a constructor with ajava.lang.Longparameter but it does contain one for primitiveintorlong. The problem from Clojure’s perspective is that both are possible as the boxed typeLongcould downcast to primitiveintorlongwithout loss of precision. Passing a primitivelongsolves 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