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

Official Documentation

Add notes
Arities
==================================================
   [size-or-seq]

Docstring
==================================================
  Creates an array of objects

Source

(defn object-array
  "Creates an array of objects"
  {:inline (fn [arg] `(. clojure.lang.RT object_array ~arg))
   :inline-arities #{1}
   :added "1.2"}
  ([size-or-seq] (. clojure.lang.RT object_array size-or-seq)))

Example 1

Edit
;; create an array of Java Objects using object-array
;; and demonstrate that it can be used with the Java fill function

(def os (object-array [nil 23.2 "abc" 33]))
;; => #'user/os

(vec os)
;; => [nil 23.2 "abc" 33]

(java.util.Arrays/fill os 31415)
;; => nil

(vec os)
;; => [31415 31415 31415 31415]

Uses on crossclj