SkipWhile
SkipWhile()
用于排除元素直到第一次不匹配(这可能与大多数人相反)
int[] list = { 42, 42, 6, 6, 6, 42 };
var result = list.SkipWhile(i => i == 42);
// Result: 6, 6, 6, 42
SkipWhile()
用于排除元素直到第一次不匹配(这可能与大多数人相反)
int[] list = { 42, 42, 6, 6, 6, 42 };
var result = list.SkipWhile(i => i == 42);
// Result: 6, 6, 6, 42