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

Official Documentation

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

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

Source

(def-aset
  ^{:doc "Sets the value at the index/indices. Works on arrays of short. Returns val."
    :added "1.0"}
  aset-short setShort short)

Example 1

Edit
;; create an array of 10 shorts and set one of the values to 31415

(def ss (short-array 10))
;; => #'user/ss

(vec ss)
;; => [0 0 0 0 0 0 0 0 0 0]

(aset-short ss 3 31415)
;; => 31415

(vec ss)
;; => [0 0 0 31415 0 0 0 0 0 0]

Uses on crossclj