useReverseRange

inline fun <K, V, Result> KeyValueStore<K, V>.useReverseRange(from: K? = null, to: K? = null, operation: KeyValueIteratorOperation<K, V, Result>): Result

Reverse-iterate over a range of records.

This function is useful because the KeyValueIterator will be closed automatically (see: kotlin.io.use) after all values have been consumed.

See also