[top][index]
search for:

subsets Set -- produce all the subsets

Synopsis:

  • Function: subsets -- produce all the subsets
  • Input:
  • an instance of class Set.
  • subsets s -- yields a list of the subsets of the set s.

    i1 : subsets set {a,b,c}

    o1 = Set {{a}, {b}, {a, b}, {c}, {a, c}, {a, b, c}, {}, {b, c}}

    o1 : Set

    See also:

  • subsets -- produce all the subsets
  • Code:

         -- ../../../Macaulay2/m2/combinatorics.m2:18
         subsets Set := x -> set subsets toList x

    [top][index]
    search for: