First, the next more specific array accessor than ELT
, and at least on SBCL I think that there is no much point in using explicit SVREF
, since usually type declarations/inference will automatically expand to specialized version.
Anyway, by definition of simple array
it cannot be dynamically adjustable. But I am not sure I understand your use case... If you are gathering objects when parsing a file, you might just as well collect them in a list and when done convert it to an array for faster lookups. It is also of course always possible to copy the contents into a newly allocated, bigger array. Or use some kind of rope-like datastructure, ie. have a tree of array fragments, but I doubt this would be useful in this case.