Function subsets

  • List all possible subsets.

    Type Parameters

    • T

    Parameters

    • x: Set<T>

      a set

    • n: number = -1

      number of values [-1 ⇒ any]

    Returns IterableIterator<Set<T>>

    elements selected by bit from 0..2^|x| if n<0; only of length n otherwise

Generated using TypeDoc