Does Distinct() preserve always take the first element in the list
Posted
by Cornelius
on Stack Overflow
See other posts from Stack Overflow
or by Cornelius
Published on 2010-03-19T06:51:44Z
Indexed on
2010/03/19
7:01 UTC
Read the original article
Hit count: 237
Would
int[] nums = { 2, 3, 3, 4, 2, 1, 6, 7, 10 };
var distinct = nums.Distinct();
always return 2, 3, 4, 1, 6, 7, 10
in that order?
© Stack Overflow or respective owner