std.algorithm.reduce on an array of structs

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 11 08:39:11 PDT 2014


On Thursday, 11 September 2014 at 15:29:18 UTC, Daniel Kozak
wrote:
> On Thursday, 11 September 2014 at 15:07:03 UTC, Daniel Kozak 
> wrote:
>>
>> or use alias minimum = reduce!"a < b";
>> ;)
>
> ok this one does not work

Yeah, it's actually reduce!"a < b ? a : b"


More information about the Digitalmars-d-learn mailing list