MoreEnumerable.RunLengthEncode Method |
Name | Description | |
---|---|---|
RunLengthEncode<T>(IEnumerable<T>) |
Run-length encodes a sequence by converting consecutive instances of the same element into
a KeyValuePair{T,int} representing the item and its occurrence count.
| |
RunLengthEncode<T>(IEnumerable<T>, IEqualityComparer<T>) |
Run-length encodes a sequence by converting consecutive instances of the same element into
a KeyValuePair{T,int} representing the item and its occurrence count. This overload
uses a custom equality comparer to identify equivalent items.
|