PermutationCollectionT(IListT, IComparerT) Constructor
Initializes a new instance of the
PermutationCollectionT class.
Create a permutation set from the provided list of values.
The values will be compared using the supplied
IComparer.
The repetition type defaults to
WithoutRepetition
Namespace: DevCase.Core.Math.CombinatoricsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public PermutationCollection(
IList<T> values,
IComparer<T> comparer
)
Public Sub New (
values As IList(Of T),
comparer As IComparer(Of T)
)
Dim values As IList(Of T)
Dim comparer As IComparer(Of T)
Dim instance As New PermutationCollection(values,
comparer)
public:
PermutationCollection(
IList<T>^ values,
IComparer<T>^ comparer
)
new :
values : IList<'T> *
comparer : IComparer<'T> -> PermutationCollection
No code example is currently available or this language may not be supported.
Parameters
- values IListT
-
List of values to permute.
- comparer IComparerT
-
Comparer used for defining the lexigraphic order.