class · System

SortedSet<T>

public class System.SortedSet<T> : System.Any

A set kept in order: Add, Contains, Remove, Min, Max, and loop (T item in set) from the smallest.

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

Type parameters

NameConstraints
TSystem.IComparable<T>

Inheritance

Base classes
Any SortedSet<T>

Constructors

constructor SortedSet()
#

Properties

property Count: i32
#

read-only

property IsEmpty: bool
#

read-only

property Min: T
#

read-only

The smallest and largest items (an InvalidOperationError when the set is empty).

property Max: T
#

read-only

Methods

method Add(item: T) -> bool
#

Adds item; false when it was there already.

method Contains(item: T) -> bool
#
method Remove(item: T) -> bool
#
method Clear() -> void
#
method Iterator() -> System.SortedSetIterator<T>
#

Private and internal members (1)

field tree: System.SortedDictionary<T, bool>
#

private

Inherited members (5)

Source

SortedSet<T> as Larva HIR, decompiled from its Larva HIR.

System.SortedSet.hir
// A set kept in order: Add, Contains, Remove, Min, Max, and `loop (T item in set)` from the smallest.
public class System.SortedSet<T> : System.Any
{
    field tree: System.SortedDictionary<T, bool>
    constructor SortedSet()
    // Adds `item`; false when it was there already.
    method Add(item: T) -> bool
    method Contains(item: T) -> bool
    method Remove(item: T) -> bool
    method Clear() -> void
    method Iterator() -> System.SortedSetIterator<T>
    property Count: i32
    property IsEmpty: bool
    // The smallest and largest items (an InvalidOperationError when the set is empty).
    property Min: T
    property Max: T
}
Esc