![]() | occurancesToOccurancesSortedT Method |
Namespace: WhetStone.Looping
public static IEnumerable<Tuple<T, int>> ToOccurancesSorted<T>( this IEnumerable<T> this, IEqualityComparer<T> c = 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.