Click or drag to resize

RankedBagTElementsFrom Method

Returns an enumerator that iterates over a range with the supplied lower bound.

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

Parameters

lower
Type: T
Minimum item of the range.

Return Value

Type: IEnumerableT
An enumerator for the supplied range.
Exceptions
ExceptionCondition
InvalidOperationExceptionWhen the bag was modified after the enumerator was created.
Remarks

If lower is present in the bag, it will be included in the results.

Retrieving the initial item is a O(log n) operation. Retrieving each subsequent item is a O(1) operation.

See Also