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