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) o1 = {Set {a, b}, Set {a, c}, Set {b, c}} o1 : List
See also:
Code:
-- ../m2/combinatorics.m2:16 subsets(Set,ZZ) := (s,j) -> apply(subsets(toList s, j), set)