std.algorithm.sort error with default predicate

Andrew Brown via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 7 13:58:06 PDT 2014


Is it chain you are after to concatenate the objects and sort 
them together?

http://dlang.org/phobos/std_range.html#.chain

You'd need to cast them all to the same type.

On Monday, 7 July 2014 at 20:50:06 UTC, Archibald wrote:
> On Monday, 7 July 2014 at 20:17:16 UTC, bearophile wrote:
>> Archibald:
>>
>>> Using std.algorithm.sort(a,b,c,d,e)
>>
>> But isn't std.algorithm.sort accepting only one argument?
>>
>> Bye,
>> bearophile
>
> Sorry, it's sort(zip(a,b,c,d,e))



More information about the Digitalmars-d-learn mailing list