Updating an item in an array passed by reference
|Added at||2016-12-27 21:12|
What's the easiest/right way to update an item in an array? I want the caller to have the updated array as well. So:
I want the caller to have the updated items (with the updated item). I think the problem with the above code is that it only updates the local variable item. What's the best way to actually update the relevant item inside the items array?