RunLengthEncodeExtension Class
RunLengthEncode extension.
Namespace: MoreLinq.ExtensionsAssembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
public static class RunLengthEncodeExtension
<ExtensionAttribute>
Public NotInheritable Class RunLengthEncodeExtension
[ExtensionAttribute]
public ref class RunLengthEncodeExtension abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type RunLengthEncodeExtension = class end
- Inheritance
- Object RunLengthEncodeExtension
RunLengthEncodeT(IEnumerableT) |
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.
|
RunLengthEncodeT(IEnumerableT, IEqualityComparerT) |
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.
|