Prototypes Michael Burschik 10 Apr 2003 06:20 UTC

The prototype of vector-find does not specify the function's return value,
which should probably be "value". It might also be mentioned that the return
value is ambiguous with regard to #f, which might be a vector element that
satisfied the predicate, or signal that the end of the vector was reached
without satisfying the predicate.

The return value of vector-find-tail, on the other hand, should probably be
"vector" instead of "value", as the reference implementation will return an
empty vector in case no element satisfied the predicate.

The prototype of vector-any should probably be (vector-any pred? vec1 ...
vecn), otherwise the variable "n" in the following discussion would be
unbound. In many other functions defined in section 4.7, the arity of the
predicate is not specified. Is this deliberate?


Michael Burschik