wam.functor

arity

Determine the arity given a functor (as either a symbol or a
wam.grammar.Functor) representation

name

(name functor)
Extract the name of a functor, either given as a symbol or a wam.grammar.Functor