Click or drag to resize

RankedBagTDistinct Method

Returns an enumerator that iterates thru the distinct items of the bag in sort order.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public IEnumerable<T> Distinct()

Return Value

Type: IEnumerableT
An enumerator that iterates thru distinct items.
Remarks

For items with multiple occurrences, the oldest occurrences are returned.

This is a O(m log n) operation where m is the distinct item count and n is Count.

See Also