From: Bertram Scharpf Date: 2005-01-07T06:23:25+09:00 Subject: Re: Think I need an Array#split Am Donnerstag, 06. Jan 2005, 02:31:31 +0900 schrieb Robert Klemme: > > "leon breedt" schrieb im Newsbeitrag > news:270bd0c40501041728ba09e80@mail.gmail.com... > >On Wed, 5 Jan 2005 10:04:08 +0900, Bertram Scharpf > > wrote: > >>I made both solutions available at > >>. > >I had a look, perhaps it could emulate String#split by performing an > >"awk split" (on whitespace) if there is no delimiter argument given? > >Also, allowing a Regexp as a > >delimiter would further emulate the String#split functionality. > > Another option would be an optional block that evaluates to true for > delimiters. I didn't look at the proposed implementation, but here's how Very nice ideas, indeed. I widened my function. Is it now worth to become a part of Ruby? Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de