From: Bertram Scharpf Date: 2006-03-16T09:05:37+09:00 Subject: Re: Proposal: String#notempty? Am Mittwoch, 15. M�r 2006, 22:19:50 +0900 schrieb dblack@wobblini.net: > On Wed, 15 Mar 2006, Bertram Scharpf wrote: > > >class String > > def complexity > > scan(/\w+|./).uniq.length > > end > >end > > I see the point about speed, but I'm not clear on what the > "complexity" thing is supposed to be demonstrating -- ? I just looked for an amusing way to express that "nonempty?" is easiear to read than "[/.+/mn]". Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de