private/1

Description

private(Functor/Arity)
private(Functor1/Arity1, Functor2/Arity2, ...)
private([Functor1/Arity1, Functor2/Arity2, ...])

Declares private predicates. A private predicate can only be called from the object containing the private directive.

Template and modes

private(+predicate_indicator_term)

Examples

:- private(counter/1).

:- private(init/1, free/1).

:- private([data/3, key/1, keys/1]).