[REBOL] Re: findany
From: greggirwin:mindspring at: 24-Dec-2001 10:44
Hi Louis,
<< And I like the idea of returning the position in the string instead of
just true. >>
Often times, if you're writing a routine that has a name similar to a
built-in function, or is intended to extend the functionality of a built-in
somehow, it's a good idea to model your behavior on the original (even if
you don't agree with its design :). It makes it much easier for people,
including yourself, to use your routine.
If you want different behavior, choose a distinct name. In your current
example, you might use a word like 'contains? or 'contains-any? which
naturally return a yes/no (boolean) answer.
--Gregg