Iterators.Combinations With Replacement<T>(IList<T>, Int 32) Method
Enumerates the indexes of all combinations with replacement
of the specified length from a list of items.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A sequence of integer arrays that contain the indexes of all combinations with replacement of length elements from items.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static IEnumerable<T[]> CombinationsWithReplacement<T>(
IList<T> items,
int length
)
Parameters
Type Parameters
- T
Return Value
IEnumerable<T[]>A sequence of integer arrays that contain the indexes of all combinations with replacement of length elements from items.
Exceptions
Argument | items is null. |
Argument | length is less than zero. |