Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function iterateKeys (map: SortedMapStructure): IterableIterator {
return new MappableIterator, K>(keys(map._sorted), toKey);
}
export function iterate (set: SortedSetStructure): IterableIterator> {
return keys(set._tree);
}
export function iterateValues (set: SortedSetStructure): IterableIterator {
return new MappableIterator, T>(keys(set._tree), valueOf);
}