You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'save-space!'(Space, File) :-
setup_call_cleanup(
% Open the specified File in write mode.
open(File, write, Out, []),
% Write all atoms from the Space to the file using with_output_to/2.
with_output_to(Out,
% For each atom retrieved from the space, write it to the file.
forall(get_atoms(Space, Atom), write_src(Atom))),
% Ensure the output stream is closed after writing.
close(Out)).
The text was updated successfully, but these errors were encountered:
save-space!
gives an existence error for its internal methodget_atoms
.e.g.
!(save-space! &self "test-save-space.metta")
will give an errorThe implementation
The text was updated successfully, but these errors were encountered: