List.ReplaceRange

Sözdizimi

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

Hakkında

count içindeki list değerlerini belirtilen konumdan indexbaşlayarak listesiyle replaceWithdeğiştirir.

Örnek 1

{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}