The function java-array-length
returns the length of object if this is a Java array. For multi-dimensional arrays, java-array-length
returns the first dimension. If object is some other type of Java object, java-array-length
returns nil
. Otherwise it signals an error.
LispWorks User Guide and Reference Manual - 13 Feb 2015