(rontolisp) docs
← Maps, sets and vectors

doubles

(doubles xs)

Casts to double[]: answers the array xs itself -- nil itself, a vector widened as double-array widens it, anything else the oracle's ClassCastException.

An array is a vector here: a vector widens where the oracle refuses what is no primitive array (deviations). Runs on every backend; as a value a function of one argument.