(rontolisp) docs
← Functions

array-element-type

(array-element-type array)

Returns the array's element type. A packed float array answers double-float or single-float, and a packed unsigned-integer vector (make-array with a literal :element-type '(unsigned-byte 8|16|32) on a rank-1 array, or a concatenate whose result type spells that element type) answers its real (unsigned-byte n) specifier. A string — a vector of characters — answers character. For every other general array the answer is the symbol t (other element types are accepted but not tracked). Provided for compatibility with portable code such as cl-utilities' copy-array.