跳至主要内容

List.Repeat

傳回清單,此清單是將原始清單重複計數 (count) 次。

Syntax

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

Remarks

傳回清單,此清單是將原始清單 list 重複 count 次。

Examples

Example #1

建立將 {1, 2} 重複 3 次的清單。

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

Result:

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

Category

List.Transformation functions