Documentation - v0.27.1
    Preparing search index...

    Set for Longs.

    Uses fast string representation internally

    Hierarchy

    • CustomSet<Long, string>
      • LongSet
    Index

    Constructors

    Properties

    clear: () => void

    Accessors

    • get "[toStringTag]"(): string

      Returns string

    • get size(): number

      Returns number

      the number of (unique) elements in Set.

    Methods

    • Returns SetIterator<Long>

    • Appends a new element with a specified value to the end of the Set.

      Parameters

      Returns this

    • Removes a specified value from the Set.

      Parameters

      Returns boolean

      Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

    • Returns Set<Long>

    • Returns an iterable of [v,v] pairs for every value v in the set.

      Returns SetIterator<[Long, Long]>

    • Executes a provided function once per each value in the Set object, in insertion order.

      Parameters

      • callbackfn: (value: Long, value2: Long, set: Set<Long>) => void
      • OptionalthisArg: any

      Returns void

    • Returns Set<string>

    • Parameters

      Returns boolean

      a boolean indicating whether an element with the specified value exists in the Set or not.

    • Type Parameters

      • U

      Returns Set<Long & U>

    • Returns boolean

    • Returns boolean

    • Returns boolean

    • Despite its name, returns an iterable of the values in the set.

      Returns SetIterator<Long>

    • Type Parameters

      • U

      Returns Set<Long | U>

    • Type Parameters

      • U

      Returns Set<Long | U>

    • Returns an iterable of values in the set.

      Returns SetIterator<Long>