The new, new phobos sneak preview

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Apr 7 06:19:35 PDT 2009


bearophile wrote:
> dsimcha:
>> Two things that had been discussed on this NG that I noticed are
>> conspicuously absent:  eager(), which converts a lazy range to an
>> array,
> 
> eager() name is bad. Better array(), or toArray(), or something like
> that. More descriptive.

At best this is a more general function that creates one range from 
another using a name of e.g. makeCopy.

auto a = makeCopy!(int[])(input);
auto b = makeCopy!(List!int)(input);


Andrei



More information about the Digitalmars-d mailing list