struct · System

SortedIterator<K, V>

public struct System.SortedIterator<K, V>

The pairs of a sorted map, from the smallest key: an in-order walk with its own stack.

Kind
struct
Namespace
System
Assembly
System.Core
Access
public
Source file
Sorted.ant

Type parameters

NameConstraints
KSystem.IComparable<K>
Vany type

Constructors

constructor SortedIterator(map: System.SortedDictionary<K, V>)
#

Properties

property Current: System.KeyValuePair<K, V>
#

read-only

property Key: K
#

read-only

Methods

method Next() -> bool
#

Private and internal members (5)

field map: System.SortedDictionary<K, V>
#

private

field stack: i32[]
#

private

field depth: i32
#

private

field current: i32
#

private

method Descend(n: i32) -> void
#

private

Source

SortedIterator<K, V> as Larva HIR, decompiled from its Larva HIR.

System.SortedIterator.hir
// The pairs of a sorted map, from the smallest key: an in-order walk with its own stack.
public struct System.SortedIterator<K, V>
{
    field map: System.SortedDictionary<K, V>
    field stack: i32[]
    field depth: i32
    field current: i32
    method Descend(n: i32) -> void
    constructor SortedIterator(map: System.SortedDictionary<K, V>)
    method Next() -> bool
    property Current: System.KeyValuePair<K, V>
    property Key: K
}
Esc