next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: subsets(Set,ZZ)

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

Synopsis

Description

subsets(s,j) -- yields a list of those subsets of the set s that have j elements.
i1 : subsets(set {a,b,c},2)

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

o1 : List