prolog Asserta code example
Example: prolog assert
% inserts a fact into the database
% deprecated
assert(+Term).
% inserts a fact in the beginning of the database
asserta(+Term).
% inserts a fact in the end of the database
assertz(+Term).
% example
asserta(macaco('gorila')).