?- addargs(spam(fish,cake),spoon,T). T = spam(fish,cake,spoon). true.
The following predicates are exported, but not or incorrectly documented.