info/2

Description

info(Functor/Arity, List)
info(Functor//Arity, List)

Documentation directive for predicates and grammar rule non-terminals.

Template and modes

info(+predicate_indicator, +info_list)
info(+non_terminal_indicator, +info_list)

Examples

:- info(empty/1, [
    comment is 'True if the argument is an empty list.',
    argnames is ['List']]).
    
:- info(sentence//0, [
    comment is 'Rewrites a sentence in a noun phrase and verb phrase.']).