SubsetsExtension Class

Subsets extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 4.1.0+0e154ef592f33ce0f6f3d534a9eedee273f0ce72
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