跳到主要内容

List.Repeat

返回作为原始列表指定次数的重复的列表。

Syntax

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

Remarks

返回作为原始列表 listcount次重复的列表。

Examples

Example #1

创建将 {1, 2} 重复 3 次得到的列表。

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

Result:

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

Category

List.Transformation functions