GeneratorPadTSource Method (IGeneratorTSource, TSource, Int32) |
Namespace: Gamelogic.Extensions.Algorithms
public static IGenerator<TSource> Pad<TSource>( this IGenerator<TSource> generator, TSource padding, int padCount )
var generator = Generator.Count(4).Pad(0, 3); //will generate 0 0 0 0 1 2 0 1 2 ...