store/[org.clojure/clojure "1.8.0"] clj::clojure.core/make-array

Official Documentation

Add notes
Arities
==================================================
   [type len]
   [type dim & more-dims]

Docstring
==================================================
  Creates and returns an array of instances of the specified class of
  the specified dimension(s).  Note that a class object is required.
  Class objects can be obtained by using their imported or
  fully-qualified name.  Class objects for the primitive types can be
  obtained using, e.g., Integer/TYPE.

Source

(defn make-array
  "Creates and returns an array of instances of the specified class of
  the specified dimension(s).  Note that a class object is required.
  Class objects can be obtained by using their imported or
  fully-qualified name.  Class objects for the primitive types can be
  obtained using, e.g., Integer/TYPE."
  {:added "1.0"
   :static true}
  ([^Class type len]
   (. Array (newInstance type (int len))))
  ([^Class type dim & more-dims]
   (let [dims (cons dim more-dims)
         ^"[I" dimarray (make-array (. Integer TYPE)  (count dims))]
     (dotimes [i (alength dimarray)]
       (aset-int dimarray i (nth dims i)))
     (. Array (newInstance type dimarray)))))

Example 1

Edit
(make-array Integer/TYPE 3)

Example 2

Edit
(pprint (make-array Double/TYPE 3))
;; => [0.0, 0.0, 0.0]

(pprint (make-array Integer/TYPE 2 3))
;; => [[0, 0, 0], [0, 0, 0]]


;; Create an array of Threads, then show content and type
(def ar (make-array Thread 3))
;; => #'user/ar

(pprint ar)
;; => [nil, nil, nil]

(type ar)
;; => [Ljava.lang.Thread;

Uses on crossclj