I want to modify an array (I'm using splice in this example, but it could be any operation that modifies the array) and return the in
I want to modify an array (I'm using splice in this example, but it could be any operation that modifies the array) and return the in