(rontolisp) docs
← Maps, sets and vectors

shorts

(shorts xs)

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

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