Save the state of a simulation object or set of objects.

save_object_state(objects)

Arguments

objects

a simulation object (eg. a variable or event) or an arbitrarily nested list structure of such objects.

Value

the saved states of the objects. This has the same shape as the given objects: if a list was passed as an argument, this returns the corresponding list of saved states. If a singular object was passed, this returns just that particular object's state.