Prototypes Michael Burschik (10 Apr 2003 06:21 UTC)
Re: Prototypes Taylor Campbell (18 Apr 2003 03:24 UTC)
AW: Prototypes Michael Burschik (23 Apr 2003 06:08 UTC)
Re: AW: Prototypes bear (23 Apr 2003 16:46 UTC)
Re: AW: Prototypes Tony Garnock-Jones (24 Apr 2003 09:27 UTC)

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?

Regards

Michael Burschik