Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #346 Repeated list

Create the list y from the list x repeated n times

Vandalized by lxbfYeaa
Classes
y := TList.Create;
for i := 1 to n do y.AddList(x);
y = x * n

New implementation...
< >
programming-idioms.org