arg/3
arg(+ArgNum, +Term, -Arg)
arg(
,
)
unifies Arg with the ArgNumth argument of term Term.
The arguments are numbered from 1 upwards.
instantiation_error
type_error
| ?- arg(2, foo(a,b,c), X). X = b
functor/3, =../2, ref-lte-act.
functor/3
=../2