CurryInfo: searchtree-unsafe-3.0.0 / Control.Search.SearchTree.Unsafe.varId

definition:
 
varId :: a -> Int
varId x =
  maybe (error "Control.Search.SearchTree.Unsafe.varId: argument not a variable")
        id
        (lookupVarId x)
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
Returns the unique identifier of a free variable,
if the argument was not a free variable, otherwise an error is raised.
This function is only meaningful when applied to
a part of a result of an encapsulated expression
if the argument stems from a `Value` node of
a SearchTree
failfree:
 _
indeterministic:
 might be indeterministic
infix:
 no fixity defined
iotype:
 {(_) |-> _}
name:
 varId
precedence:
 no precedence defined
result-values:
 _
signature:
 a -> Prelude.Int
solution-complete:
 operation might suspend on free variables
terminating:
 yes
totally-defined:
 reducible on all ground data terms