CurryInfo: icurry-3.2.0 / ICurry.Interpreter.rootOfTask

definition: Info
 
rootOfTask :: Task -> NodeID
rootOfTask (Task ctrl stk _)
  | null stk  = case ctrl of CNode nid -> nid
                             IBlockEnv _ env -> lookupInEnv 0 env
  | otherwise = fst (last stk)
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Returns the root node of the expression to be evaluated by a task.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({Task}) |-> _}
name: Info
 rootOfTask
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Task -> Prelude.Int
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term