If A is an integer, subsets(A) lists the subsets of \{0, 1, ..., A-1\}.
|
|
A can be a list, sequence, or set. The elements need not be of the same type.
|
If a list contains repetitions, so will the subsets of that list. Since a Set has no repetitions, neither do its subsets. Also, the subsets of a set will again be sets (while the subsets of a list are lists).
|
|
The subsets of a Sequence are lists, not sequences. Also, a subset size must be specified when calling subsets on a sequence.
The object subsets is a method function.