|
|
|
|
|
by dfbrown
4058 days ago
|
|
I think the simplest way to do stuff like this is to build up an iterated copy of the previous state and once done replace the old state with the new one. Iterating isn't modifying the current state, it's generating the next state from the current one. |
|