SubsetsExtension Class

Subsets extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
C#
public static class SubsetsExtension
Inheritance
Object    SubsetsExtension

Methods

SubsetsT(IEnumerableT) Returns a sequence of IListT representing all of the subsets of any size that are part of the original sequence. In mathematics, it is equivalent to the power set of a set.
SubsetsT(IEnumerableT, Int32) Returns a sequence of IListT representing all subsets of a given size that are part of the original sequence. In mathematics, it is equivalent to the combinations or k-subsets of a set.

See Also