CurryInfo: coosy-3.1.0 / Coosy.ShowObserve.insertToCategory

definition: Info
 
insertToCategory :: Eq b => b -> a -> [(b,[a])] -> [(b,[a])]
insertToCategory cat x [] = [(cat,[x])]
insertToCategory cat x ((cat',xs):cats)
        | cat == cat' = ((cat',x:xs):cats)
        | otherwise   = (cat',xs):insertToCategory cat x  cats
demand: Info
 argument 4
deterministic: Info
 deterministic operation
failfree: Info
 (_, _, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_,{[]}) |-> {:} || (_,_,_,{:}) |-> {:}}
name: Info
 insertToCategory
precedence: Info
 no precedence defined
result-values: Info
 {:}
signature: Info
 Prelude.Eq a => a -> b -> [(a, [b])] -> [(a, [b])]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 possibly non-reducible on same data term