ISequence T  Combinations Method A Sandcastle Documented Class Library
Iterate over distinct combinations of a given size of this sequence's elements.

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
IEnumerable<ISequence<T>> Combinations(
	int size
)

Parameters

size
Type: System Int32
The size of each combination.

Return Value

Type: IEnumerable ISequence T  
An 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