Logtalk reference manual
Predicate directive: info/2

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 into a noun phrase and a verb phrase.']).