Horje
prolog assert Code Example
[Solved] - prolog assert Code Example
Try following codes
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')).
Date: 2022-05-21 05:02:10
Category: prolog
More for You