BTreeKeyIterator
public struct BTreeKeyIterator<Key: Comparable>: IteratorProtocol
An iterator for the keys stored in a B-tree without a value.
-
Advance to the next element and return it, or return
nil
if no next element exists.Complexity
Amortized O(1)Declaration
Swift
public mutating func next() -> Key?