next | previous | forward | backward | up | top | index | toc | directory | Macaulay 2 web site

subsets(Set) -- produce all the subsets

Synopsis

Description

subsets s yields a list of the subsets of the set s.

i1 : subsets set {a,b,c}

o1 = {set {}, set {c}, set {a}, set {c, a}, set {b}, set {c, b}, set {a, b},
     ------------------------------------------------------------------------
     set {c, a, b}}

o1 : List