update

fun update(index: Int, data: D): Boolean

Updates the element at the specified index with data

The change snapshot will contain data that was just updated

Return

true if the element was updated, false otherwise