Continuous integral range predicate

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 31 04:48:39 PDT 2016


On Thursday, 31 March 2016 at 11:41:17 UTC, Rene Zwanenburg wrote:
> std.algorithm.findAdjacent!((a, b) => a != b+1)(range).empty;

Correction: Should be:

std.algorithm.findAdjacent!((a, b) => a+1 != b)(range).empty;

Thanks!


More information about the Digitalmars-d-learn mailing list