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

subsets(List,ZZ) -- produce all the subsets

Synopsis

Description

subsets(s,j) -- yields a list of those subsets of the list s that have j elements.
i1 : subsets({a,b,c},2)

o1 = {{a, b}, {a, c}, {b, c}}

o1 : List