Email list hosting service & mailing list manager

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)

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