store/[org.clojure/clojure "1.8.0"] clj::clojure.core/aset

Official Documentation

Add notes
Arities
==================================================
   [array idx val]
   [array idx idx2 & idxv]

Docstring
==================================================
  Sets the value at the index/indices. Works on Java arrays of
  reference types. Returns val.

Source

(defn aset
  "Sets the value at the index/indices. Works on Java arrays of
  reference types. Returns val."
  {:inline (fn [a i v] `(. clojure.lang.RT (aset ~a (int ~i) ~v)))
   :inline-arities #{3}
   :added "1.0"}
  ([array idx val]
   (. Array (set array idx val))
   val)
  ([array idx idx2 & idxv]
   (apply aset (aget array idx) idx2 idxv)))

Example 1

Edit
(def my-array (into-array Integer/TYPE [1 2 3]))
;; => #'user/my-array

(aset my-array 1 10) ; Set the element with index 1 to 10
;; => 10

(into [] my-array)
;; => [1 10 3]

Uses on crossclj