nWayUnion(tuple)?

Ali Çehreli acehreli at yahoo.com
Wed Feb 27 15:11:03 PST 2013


On 02/27/2013 03:02 PM, bearophile wrote:

> If we add an overload of nWayUnion (better named nWayMerge:
> http://d.puremagic.com/issues/show_bug.cgi?id=6718 ) then there's no
> need to use inputRangeObject...
>
> The question is how much common my use case (mixed type iterables) is.

I agree with you. Every range that operates on a range of ranges must 
support different types of ranges. After all, chain does that:

     auto a = iota(10);
     auto b = [3.1, 6.2, 9.3];
     auto c = iota(11).map!q{a * a};
     auto r = chain(a, b, c);

Ali


More information about the Digitalmars-d-learn mailing list