adds a term to the end of the database
assertz(Term)
assertz(Term) (i)
void(Term) (i) Term to be added to the database.
This is a standard prolog built-in. Assertz() adds Term to the end of the database. Term must should bound to an atom or a struct, but may contain free variables. The database entry is not removed upon backtracking. Database entries can only be removed by the use of the retract () predicate.
assertz(world), assertz(hello), retract(X), write(X),nl, fail.
always succeeds. No runtime errors.
prolog-process, client-server, object
asserta , retract , retractall , database , clause , listing