SkipWhile

suggest change
var numbers = new[] {2,4,6,8,1,3,5,7};

var oddNumbers = numbers.SkipWhile(n => (n & 1) == 0);

Console.WriteLine(string.Join(",", oddNumbers.ToArray()));

//1,3,5,7

Feedback about page:

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



Table Of Contents