忽略重复的值
有两个运算符用于过滤重复项:
emails.Distinct(); // Never see the same value twice
emails.DistinctUntilChanged(); // Never see the same value twice in a row
你还可以传入谓词:
emails.DistinctUntilChanged(x => x.Length); // Never see the same length email twice in a row