Skip to main content

List.Repeat

Returns a list that is count repetitions of the original list.

Syntax

List.Repeat(
list as list,
count as number
) as list

Remarks

Returns a list that is count repetitions of the original list, list.

Examples

Example #1

Create a list that has {1, 2} repeated 3 times.

List.Repeat({1, 2}, 3)

Result:

{1, 2, 1, 2, 1, 2}

Category

List.Transformation functions