Function containsAllElements

  • Checks if all elements of set B are contained within set B.

    • This method runs in bilinear time on average, or O(n * m), where n = |A| (size of set A), and m = |B| (size of set B).

    Type Parameters

    • TElement

    Parameters

    • a: Set<TElement>

      Set A of type <TElement> elements

    • b: Set<TElement>

      Set B of type <TElement> elements

    Returns boolean

    Whether A contains all elements of B

Generated using TypeDoc