[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] detect / detectIndex
On May 3, 2004, at 4:05 PM, James Harkins wrote:
--- James McCartney <asynth@xxxxxx> wrote:
On May 3, 2004, at 12:26 PM, James Harkins wrote:
read, but hey, I can't use it because it "has
never
been needed in Lisp or Smalltalk."
array[begin..].detect { ... }
What about stopping at a certain index?
array[..end].detect { ... }
What about
skipping every other
one.
array[0,2..].detect { ... }
What about going backwards?
array.reverse.detect { ... }
This is a better counterargument, but of course it
isn't the one you started with.
It is the same argument. I don't see a need for it. The change is an
arbitrary one, not a general one.
None of the above are O(n*n).