Wrote "David A. Black" <dblack / wobblini.net>, on Fri, Mar 19, 2004 at 11:58:42PM +0900:
> > Is this a bug, an oversight, or is something about the methods that
> > makes them need to be different?
>
> I think the idea of breaking from find_all is sort of contradictory,
> since it runs counter to the "all" part of "find_all" :-)
Hmm, well its not contrary to the idea of breaking from "select" since
it lacks the word "all" :)
> But anyway... what Robert does is "break arr" -- that is, he gives
> break an argument. That argument then becomes the return value of the
Ah, I didn't see that. And didn't know break could take an argument!
> whole thing. You can't do that with find_all, because you don't have
> direct access to the accumulator ("arr" in Robert's example).
I see.
Thanks,
Sam
--
Sam Roberts <sroberts / certicom.com>