the console gives a=15 for the first line
the second gives us 16
and te third line retuns 30 , why not 32 ?
Why is it different from the real time audio example using sig ?
Thereās an interesting topic here about the difference between operations that return a new (or different) object as their result, and those that mutate the state of the same object.
Math operators always return new objects (no mutation).
But aList.add(aValue) always mutates the List object, and the effect of that would be seen in future operations (even without reassignment).
(And then thereās the āleakā of the implementation detail that anArray.add(something)may return the same object or a new object so to be safe, itās better to reassign always ā this is noted in the Array help file.)
@gentleclockdivider are you not able to withdraw the post yourself? i thought this was a Discourse feature available to everyone. if not i can delete the topic for you.