3 ms·
> An ArrayList is not an Array? Not in Java, no. An ArrayList is an object which represents a variable length random-access list and does not support basic ty
by SeanLuke 3y ago
> An ArrayList is not an Array?
Not in Java, no.
An ArrayList is an object which represents a variable length random-access list and does not support basic types (int, double etc.) An array is fixed-length and supports basic types. It is not an object per se.
The closest analog to an ArrayList in Lisp is an extensible vector, and the closest analog to an array is a simple-vector.
> Btw., CL allows also zero-dimensional arrays:
As any decent language would!