tuple At Putting Can Destroy
fun A_Tuple.tupleAtPuttingCanDestroy(index: Int, newValueObject: A_BasicObject, canDestroy: Boolean): A_Tuple
Answer a new tuple like the receiver but with a single element replaced at the specified index. If the receiver is mutable and canDestroy is true, then the receiver may be modified or destroyed.
Return
A tuple containing the elements that were present in the receiver, except that the element at index has been replaced by newValueObject.
Parameters
index
The index at which to replace an element.
new Value Object
The replacement element.
can Destroy
Whether the receiver can be modified if it's mutable.