Marketing of D - article topic ideas?

Nick Sabalausky a at a.a
Mon Jun 7 15:16:15 PDT 2010


"Nick Sabalausky" <a at a.a> wrote in message 
news:hujd9m$11of$1 at digitalmars.com...
> "Nick Sabalausky" <a at a.a> wrote in message 
> news:hujd6a$11e8$1 at digitalmars.com...
>>
>> Assuming, of course, a 'max' that works on a range, which would be easy 
>> enough to do. Probably something like:
>>
>
> ElementType!T max(T range)  // Corrected
>
>> {
>>    return reduce!ordinaryMax(range);
>>    // Or
>>    return reduce!"a>b?a:b"(range);
>> }
>>
>

Or:

alias reduce!"a>b?a:b" max;

God, I love D :)




More information about the Digitalmars-d mailing list