CurryInfo: icurry-3.2.0 / ICurry.Interpreter.replaceNodeArg

definition: Info
 
replaceNodeArg :: Graph -> NodeID -> Int -> NodeID -> Graph
replaceNodeArg g nid i narg = case lookupNode nid g of
  ConsNode c ns    -> updateNode g nid (ConsNode c (replace narg i ns))
  FuncNode f ns    -> updateNode g nid (FuncNode f (replace narg i ns))
  PartNode f m ns  -> updateNode g nid (PartNode f m (replace narg i ns))
  ChoiceNode _ _ _ -> error "replaceNodeArg: ChoiceNode"
  FreeNode         -> error "replaceNodeArg: FreeNode"
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Replaces the i-th successor of node `nid` by node `narg`.
failfree: Info
 (_, _, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_,_) |-> {Graph}}
name: Info
 replaceNodeArg
precedence: Info
 no precedence defined
result-values: Info
 {Graph}
signature: Info
 ICurry.Graph.Graph -> Prelude.Int -> Prelude.Int -> Prelude.Int
-> ICurry.Graph.Graph
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term