On Thu, Oct 19, 2006 at 04:24:24AM +0900, Nikolai Weibull wrote: > On 10/18/06, mathew <meta / pobox.com> wrote: > >On 10/18/06, Nikolai Weibull <now / bitwi.se> wrote: > >> On 10/18/06, Eric Hodel <drbrain / segment7.net> wrote: > >> > Creating a new Array for enumerating the lines of a 50M String is not > >> > going to be fun (or fast). > >> > >> When would you actually do that? > > > >If you mean "When would you enumerate the lines of a 50M String?", one > >answer is when doing molecular biology. Lots of biotech companies use > >Perl to analyze DNA sequences, which are enormous Strings. The human > >genome is about 650MB. > > That's not what I meant. Substitute "such a thing as creating a new > Array for enumerating the lines of a 50M String" for "that". e.g. largestring.lines.min if String#lines returned an array instead of an enumerator, making it equivalent to largestring.lines.to_a.min -- Mauricio Fernandez - http://eigenclass.org - singular Ruby