Iterate over distinct combinations of a given size of this sequence's elements.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
Parameters
- size
- Type: System Int32
The size of each combination.
Return Value
Type: IEnumerable ISequence TAn iterator that traverses the possible n-element combinations of this sequence's elements.
Examples
"abcd".AsSequence().Combinations(2) = ab, ac, ad, bc, bd, cd
See Also