I was thinking if I have a tuple of int and list:
(5,[2,3])
The first element id represents the sum of the list.
Can I append a value to the list and update the sum at the same time? The results should look something like this:
(10,[2,3,5])
Thanks for any help.