[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Prototypes

This page is part of the web mail archives of SRFI 43 from before July 7th, 2015. The new archives for SRFI 43 contain all messages, not just those from before July 7th, 2015.

> > 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


Michael Burschik