 | GeneratorRepeatTSource Method |
Makes a generator that repeats elements of the given list over and over.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<TSource> Repeat<TSource>(
IEnumerable<TSource> list
)
Parameters
- list
- Type: System.Collections.GenericIEnumerableTSource
The list from which elements are generated.
Type Parameters
- TSource
- The type of elements in the given list and the type of
elements that will be generated.
Return Value
Type:
IGeneratorTSourceA new generator.
Exceptions
See Also