pub fn write(idx: f64, val: f64)
Write val to slot idx. Grows the buffer if needed; out-of-range indices are silently ignored.
val
idx