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

subsets(Set) -- produce all the subsets

Synopsis

Description

subsets s yields a list of the subsets of the set s.

i1 : subsets set {a,b,c}

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

o1 : List