A Compactable is a data structure that changes over time, and incorporates the possibility
to compact all changes, leaving the structure as if the current value was used at creation.
The operation compact can be used to set the current value as the initial one,
forgetting all registered changes -- this is useful, for example, for memory saving.
Also, information about all changes made since creation or the last compactation can be accessed using
numAllChanges and allChanges.
A Compactable is a data structure that changes over time, and incorporates the possibility to compact all changes, leaving the structure as if the current value was used at creation.
The operation compact can be used to set the current value as the initial one, forgetting all registered changes -- this is useful, for example, for memory saving. Also, information about all changes made since creation or the last compactation can be accessed using numAllChanges and allChanges.