List.ReplaceRangeList.ReplaceRange
SintassiSyntax
List.ReplaceRange(list as list, index as number, count as number, replaceWith as list) as list
InformazioniAbout
Sostituisce count
valori in list
con l'elenco replaceWith
a partire dalla posizione specificata index
.Replaces count
values in the list
with the list replaceWith
, starting at specified position, index
.
Esempio 1Example 1
Sostituire {7, 8, 9} nell'elenco {1, 2, 7, 8, 9, 5} con {3, 4}.Replace {7, 8, 9} in the list {1, 2, 7, 8, 9, 5} with {3, 4}.
List.ReplaceRange({1, 2, 7, 8, 9, 5}, 2, 3, {3, 4})
11 |
22 |
33 |
44 |
55 |