CurryInfo: base-3.4.0 / Data.List.intersect

definition: Info
 
intersect             :: Eq a => [a] -> [a] -> [a]
intersect []     _     = []
intersect (x:xs) ys    = if x `elem` ys then x : intersect xs ys
                                        else intersect xs ys
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Computes the intersection of two lists.
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]},_) |-> {[]} || (_,{:},_) |-> {:,[]}}
name: Info
 intersect
precedence: Info
 no precedence defined
result-values: Info
 {:,[]}
signature: Info
 Prelude.Eq a => [a] -> [a] -> [a]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms