Function subsequences

  • Obtain all possible subsequences.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • n: number = -1

      number of values [-1 ⇒ any]

    Returns T[][]

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

Generated using TypeDoc