List.ReplaceRange
Nahradí určený počet hodnot počínaje určenou pozicí nahrazujícími hodnotami.
Syntax
List.ReplaceRange(
list as list,
index as number,
count as number,
replaceWith as list
) as list
Remarks
Nahradí count hodnoty v seznamu list seznamem replaceWith počínaje určenou pozicí index.
Examples
Example #1
V seznamu {1, 2, 7, 8, 9, 5} nahradí hodnoty {7, 8, 9} hodnotami {3, 4}.
List.ReplaceRange({1, 2, 7, 8, 9, 5}, 2, 3, {3, 4})
Result:
{1, 2, 3, 4, 5}
Category
List.Transformation functions