(subsets,Set,ZZ)
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 {c, a}, Set {c, b}, Set {a, b}}
o1 : List
See also
subsets
.