replace abstract method
Returns a new list with the item at index
replaced with a new value
Implementation
Result replace(int index, Elem v);
Returns a new list with the item at index
replaced with a new value
Result replace(int index, Elem v);