platform-bible-utils
    Preparing search index...

    Class SortedSet<T>

    A collection of unique items that are automatically maintained in sorted order, similar to C#'s SortedSet.

    Type Parameters

    • T

      The type of elements in the set

    Index

    Constructors

    Accessors

    Methods

    • Returns the element at the specified index in the sorted order

      Parameters

      • index: number

        The zero-based index of the element to get

      Returns undefined | T

      The element at the specified index, or undefined if the index is out of range

    • Inserts an item into the set if it's not already present

      Parameters

      • item: T

        The item to insert

      Returns boolean

      True if the item was added; false if an equal item already exists