SkipWhile

suggest change

SkipWhile() is used to exclude elements until first non-match (this might be counter intuitive to most)

int[] list = { 42, 42, 6, 6, 6, 42 };
var result = list.SkipWhile(i => i == 42); 
// Result: 6, 6, 6, 42

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents