Get max elemenr over RegexMatch

ag0aep6g anonymous at example.com
Fri Aug 24 11:29:18 UTC 2018


On 08/24/2018 01:13 PM, Andrey wrote:
> This code produces an error:
>> auto matches = content.matchAll(pattern);
>> auto max = matches.maxElement!"a => a.back.to!uint"();

You're mixing two different notations. It's either

     matches.maxElement!(a => a.back.to!uint)()

or

     matches.maxElement!"a.back.to!uint"()


More information about the Digitalmars-d-learn mailing list