AW: Prototypes Michael Burschik 23 Apr 2003 06:07 UTC

> > 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.
>
> Can you think of a better thing to do in this case?

I can think of no elegant solution. Of course, you could always return
both the index and the element found.

> Or should there not even be a VECTOR-FIND (use VECTOR-INDEX and then
> VECTOR-REF instead)?

That is what I would do. If you keep vector-find in its current
incarnation, however, the SRFI should clearly state the ambiguity
involved.

Regards

Michael Burschik