solarnetwork-api-core
    Preparing search index...

    Function intersection

    • Create a set that contains only values that occur in two different sets.

      Type Parameters

      • T

        the value type

      Parameters

      • Optionals1: Iterable<T, any, any>

        the first set of values

      • Optionals2: Iterable<T, any, any>

        the second set of values

      Returns Set<T>

      a new set with only values that occur in both s1 and s2