UtilCombinatoricsPermuteCharacters Method
Generates all the permutations of the specified string-length using the given character set.
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 static IEnumerable<string> PermuteCharacters(
IEnumerable<char> charSet,
int length,
bool allowRepetition
)
Public Shared Function PermuteCharacters (
charSet As IEnumerable(Of Char),
length As Integer,
allowRepetition As Boolean
) As IEnumerable(Of String)
Dim charSet As IEnumerable(Of Char)
Dim length As Integer
Dim allowRepetition As Boolean
Dim returnValue As IEnumerable(Of String)
returnValue = UtilCombinatorics.PermuteCharacters(charSet,
length, allowRepetition)
public:
static IEnumerable<String^>^ PermuteCharacters(
IEnumerable<wchar_t>^ charSet,
int length,
bool allowRepetition
)
static member PermuteCharacters :
charSet : IEnumerable<char> *
length : int *
allowRepetition : bool -> IEnumerable<string>
No code example is currently available or this language may not be supported.
- charSet IEnumerableChar
-
The character set.
- length Int32
-
The permuation length.
- allowRepetition Boolean
-
If set to , character repetition is allowed when generating the permutations.
IEnumerableString
An
IEnumerableT that contains the resulting permutations.
This is a code example.
No code example is currently available or this language may not be supported.
Dim permutations As IEnumerable(Of String) = PermuteCharacters("0123456789", 3, allowRepetition:=True)
For Each value As String In permutations
Debug.WriteLine(value)
Next value
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentException
|
Char-set contains duplicated characters.;charSet
|