Skip to content

Subsets

The power set of — every subset, as a lazy indexed family of .

Subsets(n)the subsets of .
Subsets(collection)the subsets of any finite collection.

Domain: Collections

Details
  • A lazy indexed collection: in closed form and unranks the -th subset, so no subset beyond the page in view is built.
  • The subsets carrying a fixed size number ; summing over gives . See Binomial.
  • Each element is the subset's list of members; Length is its size.

Enumeration

See also: Binomial, Length, Count, At