RankedMapTKey, TValueElementsBetween Method |
Namespace: Kaos.Collections
public IEnumerable<KeyValuePair<TKey, TValue>> ElementsBetween( TKey lower, TKey upper )
Exception | Condition |
---|---|
InvalidOperationException | When the map was modified after the enumerator was created. |
If either lower or upper are present in the map, they will be included in the results.
Retrieving the first element is a O(log n) operation. Retrieving subsequent elements is a O(1) operation per element.