Documentation asserta/1
available from version beta

asserta/1

Add term to the Prolog database.

Description

asserta( @clause )

asserta(Clause) is true. It has for side effect the addition of the clause Clause to the database, placing it before any other facts or rules with the same functor.

Implementation