Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "intersection"

Index

Functions

Const intersection

  • Computes the intersection of sets a and b and writes results into new set or optionally given set out (assumed to be empty for correct results). If out is not given, the returned Set type will be that of a (provided it defines Symbol.species).

    Type parameters

    • T

    Parameters

    • a: Set<T>

      first set

    • b: Set<T>

      other set

    • Optional out: Set<T>

      result set

    Returns Set<T>

intersectionR

  • intersectionR<T>(): Reducer<Set<T>, Iterable<T>>
  • intersectionR<T>(src: Iterable<Iterable<T>>): Set<T>

Generated using TypeDoc