[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] detect / detectIndex
This has never been needed in Lisp or Smalltalk. I'd be against adding
this unless some precedent can be found.
I'm curious what the situation is. How are you using the collection
that you need to do this?
On May 3, 2004, at 12:49 AM, Julian Rohrhuber wrote:
Will there ever be a parallel to detect and detectIndex that will
start at a user-supplied index? Any reason the current methods
couldn't be modified to do this?
It's a pain... if I want to start at the beginning of a collection,
fine, but otherwise I have to write the while loop myself. Waste of
effort.
hjh
I'd also suggest to always hand in a starting index, like in
Order-detect
but this cannot be implemented in Collection (as Collection is not
indexeable necessarily.) So SequenceableCollection-detect should
probably be: