next | previous | forward | backward | up | top | index | toc | home

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

o1 : List