Next: , Up: arrays   [Index]


34.1 Array item coordinates

A single element coordinate in a multidimensional array is a non–negative fixnum. The following bindings are exported by the library (vicare containers arrays).

Function: coordinate? obj

Return #t if obj is valid as multidimensional array coordinate; otherwise return #f.

Arguments validation

The following bindings are validation clauses to be used with the facilities of the library (vicare arguments validation).

Validation Clause: coordinate obj
Validation Clause: coordinate/false obj

Succeed if obj is acceptable as multidimensional array coordinate; the second form accepts also #f.

Validation Clause: list-of-coordinates obj

Succeed if obj is a proper list of items, each acceptable as multidimensional array coordinate.

Validation Clause: vector-of-coordinates obj

Succeed if obj is a built–in Scheme vector, and each item is acceptable as multidimensional array coordinate.