xen-dev-utils
    Preparing search index...

    Class FractionSet

    Collection of unique fractions.

    Hierarchy

    Index

    Constructors

    • Parameters

      • Optionalvalues: readonly Fraction[] | null

      Returns FractionSet

    • Parameters

      • Optionaliterable: Iterable<Fraction, any, any> | null

      Returns FractionSet

    Properties

    "[toStringTag]": string
    size: number

    the number of (unique) elements in Set.

    "[species]": SetConstructor

    Methods

    • Iterates over values in the set.

      Returns SetIterator<Fraction>

    • Removes all elements from the Set.

      Returns void

    • Removes the element associated to the value.

      Parameters

      Returns boolean

      A boolean asserting whether an element was successfully removed or not. FractionSet.prototype.has(value) will return false afterwards.

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

      Returns SetIterator<[Fraction, Fraction]>

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

      Parameters

      Returns void

    • Check value membership.

      Parameters

      • value: Fraction

        Value to check for membership.

      Returns boolean

      A boolean asserting whether an element is present with the given value in the FractionSet object or not.

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

      Returns SetIterator<Fraction>

    • Returns an iterable of values in the set.

      Returns SetIterator<Fraction>