Get started

replacingAt

open fun replacingAt(index: Int, element: E): PersistentList<E>(source)

Returns a new persistent list with the element at the specified index replaced with the specified element.

Throws

if index is out of bounds of this list.