List.ReplaceRange

Sözdizimi

List.ReplaceRange(
    list as list,
    index as number,
    count as number,
    replaceWith as list
) as list

Hakkında

Belirtilen konumdan başlayarak count içindeki list değerlerini replaceWithlistesiyle değiştirir, index.

Example

{1, 2, 7, 8, 9} listesindeki {7, 8, 9, 5} öğesini {3, 4} ile değiştirin.

Kullanım

List.ReplaceRange({1, 2, 7, 8, 9, 5}, 2, 3, {3, 4})

çıkış

{1, 2, 3, 4, 5}