is list sequential C#

80

is list sequential C# -

bool isConsecutive = !myIntList.Select((i,j) => i-j).Distinct().Skip(1).Any();

Comments

Submit
0 Comments