Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

is list sequential C#

bool isConsecutive = !myIntList.Select((i,j) => i-j).Distinct().Skip(1).Any();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #sequential
ADD COMMENT
Topic
Name
6+7 =