Table of contents
TOC
Collapse the table of content
Expand the table of content

List.ReplaceRange

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns a list that replaces count values in a list with a replaceWith list starting at an index.

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

Arguments

ArgumentDescription
listThe List to modify.
indexThe index to start at.
countThe number of values to replace.
replaceWithThe value to replace with.

Example

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