[top][index]
search for:

subsets(ZZ,ZZ) -- produce all the subsets

Synopsis:

  • Function: subsets -- produce all the subsets
  • Input:
  • an instance of class ZZ.
  • an instance of class ZZ.
  • subsets(n,j) -- for an integer n, yields a list of those subsets of {0, ..., n-1} which have j elements.

    i1 : subsets(3,2)

    o1 = {{0, 1}, {0, 2}, {1, 2}}

    o1 : List

    See also:

  • subsets -- produce all the subsets

  • [top][index]
    search for: