Next: , Previous: , Up: iklib vectors   [Index]


6.28.2 Vector predicates

Function: vector-empty? vec

Return #t if the vector vec has zero length, otherwise return #f. It is an error if vec is not a vector.

Function: empty-vector? obj

Return #t if obj is a vector and it has zero length, otherwise return #f.

Function: non-empty-vector? obj
Function: nevector? obj

Return #t if obj is a vector object with non–zero length; otherwise return #f. This function does not raise an exception if obj is not a vector object.

Function: list-of-vectors? obj

Return #t if obj is null or a proper list of vector objects; otherwise return #f.

Function: vectors-of-same-length? vec0 vec

Return #t if all the arguments are vectors of the same length; otherwise return #f. It is an error if an argument is not a vector object.

Function: list-of-vectors-of-same-length? obj

Return #t if obj is null or a proper list of vector objects, all with the same length; otherwise return #f.