Click or drag to resize

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
Syntax
C#
public 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: IGeneratorTSource
A new generator.
Exceptions
ExceptionCondition
ArgumentNullExceptionlist
See Also