Method Count
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
Count(int)
Makes a generator that generates consecutive integers starting from zero up to a limit, and repeats the cycle.
public static IGenerator<int> Count(int upperLimitExcluded)
Parameters
upperLimitExcluded
intThe upper limit (excluded).
Returns
- IGenerator<int>
A new generator
Exceptions
- ArgumentOutOfRangeException
upperLimitExcluded
is not positive.