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

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 {b, c}, set {b, a}, set {c, a}}

o1 : List