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

Official Documentation

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

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

Source

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

Example 1

Edit
;; create an array of 10 doubles and set one of the elements to 3.1415

(def ds (double-array 10))
;; => #'user/ds

(vec ds)
;; => [0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0]

(aset-double ds 3 3.1415)
;; => 3.1415

(vec ds)
;; => [0.0 0.0 0.0 3.1415 0.0 0.0 0.0 0.0 0.0 0.0]

Uses on crossclj