![]() | distinctDistinctSortedT Method |
Namespace: WhetStone.Looping
public static IEnumerable<T> DistinctSorted<T>( this IEnumerable<T> this, IEqualityComparer<T> comp = null )
this doesn't have to be sorted, it just has to have all elements equal to each other adjacent.
Alternately, all non-adjacent equal elements will be treated as non-equal.