Table of Contents

Method Repeat

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

Repeat<TSource>(IEnumerable<TSource>)

Makes a generator that repeats elements of the given list over and over.

public static IGenerator<TSource> Repeat<TSource>(IEnumerable<TSource> list)

Parameters

list IEnumerable<TSource>

The list from which elements are generated.

Returns

IGenerator<TSource>

A new generator.

Type Parameters

TSource

The type of elements in the given list and the type of elements that will be generated.

Exceptions

ArgumentNullException

list