Next: args predefined bytevectors, Previous: args predefined strings, Up: args predefined [Index]
The following bindings are exported by the library (vicare
arguments validation)
.
Succeed if obj is a vector.
Succeed if obj is #f
or a vector.
Succeed if obj is a vector and its length is greater than zero.
Succeed if obj is #f
or a vector and its length is greater
than zero.
Succeed if idx is a fixnum usable as index (not out of range) for vec, which is expected to be an already validated vector.
Assuming that vec is an already validated vector: succeed if idx is a fixnum usable as index (not out of range) for vec, and count is a fixnum which can be used as characters count in vec starting and idx without going out of range.
In other words: idx and count select a subvector of vec.
Assuming that vec is an already validated vector: succeed if both start and end are fixnums usable as indexes (not out of range) for vec, and start is less than or equal to end.
In other words: start and end select a subvector of vec by specifying inclusive limits.
Assuming that vec is an already validated vector: succeed if both start and past are fixnums satisfying the constraints:
0 <= start <= (vector-length vec) start <= past <= (vector-length vec)
In other words: start and past select a subvector of vec by specifying left–inclusive and right–exclusive limits.
Next: args predefined bytevectors, Previous: args predefined strings, Up: args predefined [Index]