Add these to Phobos?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Oct 17 07:41:44 PDT 2012


On 10/15/12 9:47 PM, Jonathan M Davis wrote:
> And if SortedRange is changed to provide access to its underlying range via a
> member named source (it was recently suggested by Andrei that we should
> standardize on doing that where appropriate), then it could become a one-
> liner:
>
> auto result = sort(array(range)).source;

Yes, I think we should move toward the ".source" convention for all 
applicable ranges, e.g. retro.source yields the original range etc.

Andrei



More information about the Digitalmars-d mailing list