3 ms·
...unless you're using (structure-sharing) persistent data structures throughout, in which case it is practically trivial. Mind you, this has other issues. (Al
by TheLoneWolfling 12y ago
...unless you're using (structure-sharing) persistent data structures throughout, in which case it is practically trivial. Mind you, this has other issues.
(Although, if you want to preserve undo/redo over (unintended) shutdowns, it becomes much more difficult.)
- sitkack 12y agoWhich I would argue that a persistent data structure allows you to go back in time to a snapshot. It doesn't actually attempt to mutate back to a previous state. But yes and yes.