definition:
|
rootOf :: PlTerm -> (String,Int)
rootOf pterm = case pterm of
PlVar _ -> ("", 0)
PlInt i -> (show i, 0)
PlFloat x -> (show x, 0)
PlAtom a -> (a, 0)
PlStruct s args -> (s, length args)
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- The name and the arity of the root of a Prolog term,
--- where the names of variables are ignored (i.e., empty).
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({PlVar}) |-> {(,)} || ({PlInt}) |-> {(,)} || ({PlFloat}) |-> {(,)} || ({PlAtom}) |-> {(,)} || ({PlStruct}) |-> {(,)}}
|
name:
|
rootOf
|
precedence:
|
no precedence defined
|
result-values:
|
{(,)}
|
signature:
|
Language.Prolog.Types.PlTerm -> (String, Prelude.Int)
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|