Iterates over distinct permutations of this sequence.
If this sequence represents an infinite set or series, calling
GetEnumerator on the result value will not return!
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public IEnumerable<ISequence<T>> Permutations()
public IEnumerable<ISequence<T>> Permutations()
Public Function Permutations As IEnumerable(Of ISequence(Of T))
Public Function Permutations As IEnumerable(Of ISequence(Of T))
public:
virtual IEnumerable<ISequence<T>^>^ Permutations() sealed
public:
virtual IEnumerable<ISequence<T>^>^ Permutations() sealed
abstract Permutations : unit -> IEnumerable<ISequence<'T>>
override Permutations : unit -> IEnumerable<ISequence<'T>>
abstract Permutations : unit -> IEnumerable<ISequence<'T>>
override Permutations : unit -> IEnumerable<ISequence<'T>>
Return Value
Type:
IEnumerable ISequence T An iterator which traverses the distinct permutations of this sequence.
Implements
ISequence T Permutations Examples "abb".AsSequence().Permutations() = abb, bab, bba
See Also