| |||||||||||
| relates a term and one of its arguments.
arg(+N, +CompoundTerm, -Argument)
arg/3 unifies Argument with the N-th argument of CompoundTerm.
Arguments
N integer (between 1 and the arity of CompoundTerm) CompoundTerm compound term Argument term
Examples
Standard
This predicate is part of the ISO-Prolog Standard.
See alsocopy_term/2, functor/3, '=..'/2.
| |||||||||||
| |||||||||||
| Back> |
|