On 6 Aug 2002, at 16:41, Tom Sawyer wrote:

> On Tue, 2002-08-06 at 01:20, Avi Bryant wrote:
> > David Alan Black <dblack / candle.superlink.net> wrote in message
> > news:<Pine.LNX.4.30.0208052056270.15880-100000 / candle.superlink.net>
> > ...
> > > Hello --
> > > 
> > > Coding Challenge 0002 (my numbering scheme :-) has been posted to
> > > <http://www.rubygarden.org/ruby?CodingChallenge0002>.
> > 
> > So, what are the criteria for the challenge, apart from passing the
> > tests?  This obviously isn't golf, but the stats for my solution
> > are:
> > 
> > bytes: 139
> > lines: 3
> > expressions: 1
> > assignments: 0
> > 
> > ;-)
> > Avi
> 
> very nice use of recursion! very very nice.

Very impressive indeed. Avi, as you said it isn't golf, but you could 
combine the select and detect into a single detect combining the 
conditions with &&, making your solution even shorter (both in 
code size and - maybe not noticeable - execution speed).

Regards,
Pit