Copyright ® (1999-2008) EDMGROUP Pty Ltd - EZY Prolog Reference

 retract

[This is preliminary specification and subject to change.]

Group

Prolog predicates  (more...)

Type

determ

Syntax

retract( TERM )

Flow patterns

(i)

 

Description:

Remove a Fact from the matched internal facts section.
The retract/1 predicate deletes the first Fact in the facts section that matches the given Fact. During backtracking, the rest of the matching facts are deleted.

Sample:

No sample

Copyright © 1997-2013 EDMGROUP (Australia)