Synopsis:
subsets(s,j) -- yields a list of those subsets of the list or set s which have j elements.
i1 : subsets(set {a,b,c},2) |
See also:
Code:
-- ../../../Macaulay2/m2/combinatorics.m2:16 subsets(Set,ZZ) := (s,j) -> apply(subsets(toList s, j), set)