RosettaCodeData/Task/Remove-duplicate-elements/C-sharp/remove-duplicate-elements-2.cs

3 lines
75 B
C#
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
int[] nums = {1, 1, 2, 3, 4, 4};
int[] unique = nums.Distinct().ToArray();