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

subsets(List) -- produce all the subsets

Synopsis

Description

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

The subsets are returned as lists whose elements are in the same order.

i1 : subsets {1,2,3}

o1 = {{}, {1}, {2}, {1, 2}, {3}, {1, 3}, {2, 3}, {1, 2, 3}}

o1 : List