Logtalk reference manual
Built-in method: term_expansion/2

term_expansion/2

Description

term_expansion(Term, Expansion)

Defines an expansion for a term. This predicate, when defined, is automatically called by the expand_term/2 method. Use of this predicate by the expand_term/2 method may be restricted by using a scope directive for it. The term_expansion/2 clauses are only used by the expand_term/2 method if they are within the scope of the sender. When that is not the case, the expand_term/2 method only uses the default expansions.

Template and modes

term_expansion(?term, ?term)

Errors

(none)

Examples

(none)