SortedRange and new docs for std.container

bearophile bearophileHUGS at lycos.com
Wed Sep 8 09:52:57 PDT 2010


Andrei:
> I've also fixed Zip (finally!) to get rid of a couple of dirty tricks. 
> It turns out that front()/front(v)/moveFront() are a correct way to 
> abstract proxy ranges like Zip is.

In this changeset:
http://www.dsource.org/projects/phobos/changeset/1968

I see code as:

auto arr2 = t.field[1]; 
auto zShortest = zip(arr1, arr2); 
assert(equal(map!"a.at!0"(zShortest), [1, 2])); 

Changed in:

auto arr2 = t.field[1]; 
auto zShortest = zip(arr1, arr2); 
assert(equal(map!"a.field[0]"(zShortest), [1, 2])); 

So is this related to this enhancement request?
http://d.puremagic.com/issues/show_bug.cgi?id=4382

Bye,
bearophile


More information about the Digitalmars-d mailing list