Returns the length of a Java array.
lw-ji
java-array-length object => result
object⇩ |
A Java object. |
result |
A non-negative integer or nil . |
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 - 01 Dec 2021 19:30:46