CurryInfo: coosy-3.1.0 / Coosy.ShowObserve.separate

definition: Info
 
separate :: [EventID] -> [(Event,Bool)] -> ([(Event,Bool)],Trace)
separate _ [] = ([],[])
separate toFind ((dv,flag):ts)
  | elem (getRef dv) toFind
  = let 
      newToFind = getParent dv : getPred dv : filter (/=(getRef dv)) toFind
      (newts,termEvent) = separate newToFind ts 
    in ((dv,True):newts,dv:termEvent)
  | otherwise 
  = let 
      (newts,termEvent) = separate toFind ts 
    in ((dv,flag):newts,termEvent) 
demand: Info
 argument 2
deterministic: Info
 deterministic operation
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]}) |-> {(,)} || (_,{:}) |-> {(,)}}
name: Info
 separate
precedence: Info
 no precedence defined
result-values: Info
 {(,)}
signature: Info
 [Prelude.Int] -> [(Coosy.Trace.Event, Prelude.Bool)]
-> ([(Coosy.Trace.Event, Prelude.Bool)], [Coosy.Trace.Event])
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term