Do you mean how to remove an item from the list and cancel it? You can easily create a new class for the list and define properties such as: the last action performed + save the value of the beginning (and, possibly, index) of the processed element. The same goes for repeat (at least for one repeat and cancel step). If you donโt care about the order of the items (or you can easily order them), specify a list of the last actions performed and a list of values โโof the initial value. So, for example: lastAction [0] = "Delete"; lastElement [0] = 1; // means that you removed 1 from the list
This is the first and fictitious idea of โโhow to do this. There may be some problems to consider ...
ladar source share