(rontolisp) docs
← Maps, sets and vectors

object-array

(object-array size-or-seq)

Answers an object array: of a number, that many nils, else the members of a seq, standing as is. An array is a vector here, as one make-array makes: it reads through aget, writes through aset, measures through alength, copies through aclone, and takes every seq verb, count, nth, get and = as a vector does. class answers :vector, str and pr print the vector, and = compares elements, where the oracle answers its classes, prints #object and compares by identity (deviations). System/arraycopy copies between two, and java.util.Arrays' copyOf, copyOfRange, sort and fill take one, on every backend. Runs on every backend; as a value a one-argument function.