useRange

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

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