[ Dynamic Predicates | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]

asserta(+Clause)

Add specified clause for a dynamic procedure to the database before any existing clauses.
Clause
Clause to be added to the database

Description

Adds the specified clause for a dynamic procedure to the database. This is similar to the action of assert/1 except that the clause is added BEFORE any existing clauses for the procedure.

Apart from that, its behaviour is identical to assert/1.

Modes and Determinism

Modules

This predicate is sensitive to its module context (tool predicate, see @/1).

See Also

dynamic / 1, assert / 1, retract / 1, compile_term / 1