Click or drag to resize

RankedSetTElementsBetween Method

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

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

Parameters

lower
Type: T
Minimum item value of the range.
upper
Type: T
Maximum item value of the range.

Return Value

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

If either lower or upper are present in the set, they 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