RankedSetTElementsBetweenIndexes Method |
Namespace: Kaos.Collections
public IEnumerable<T> ElementsBetweenIndexes( int lowerIndex, int upperIndex )
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | When lowerIndex is less than zero or not less than Count. |
| ArgumentOutOfRangeException | When upperIndex is less than zero or not less than Count. |
| ArgumentException | When lowerIndex and upperIndex do not denote a valid range of indexes. |
| InvalidOperationException | When the set was modified after the enumerator was created. |
Index bounds are inclusive.
Retrieving the initial item is a O(log n) operation. Retrieving each subsequent item is a O(1) operation.