replaceItem

fun replaceItem(newItem: SVGLength, index: Int): SVGLength(source)

The replaceItem() method of the SVGLengthList interface replaces an existing item in the list with a new item.

MDN Reference