There are currently six library packages that extend Prolog's built-in set of operations on terms. They are
library(arg)
arg/3
library(changearg)
library(occurs)
library(samefunctor)
functor/3
library(subsumes)
library(unify)