Class PowerSet
Provides a method to create a power set for a given set.
Inherited Members
Namespace: Rebus.Server
Assembly: Rebus.Server.dll
Syntax
public static class PowerSet
Remarks
The implementation of this class was inspired by and based on this Stack Overflow question asked by Jamal Hussain and answered by @SergeyS.
Methods
Create(IReadOnlyList<Int32>)
Creates a power set for the given values
.
Declaration
public static int[][] Create(IReadOnlyList<int> values)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<Int32> | values | The set of values. |
Returns
Type | Description |
---|---|
Int32[][] | The set containing every subset of the given set, including the empty set ( |