CurryInfo: base-3.4.0 / Prelude.lookup

definition: Info
 
lookup :: Eq a => a -> [(a, b)] -> Maybe b
lookup _ []          = Nothing
lookup k ((x,y):xys) | k == x    = Just y
                     | otherwise = lookup k xys
demand: Info
 argument 3
deterministic: Info
 deterministic operation
documentation: Info
 
Looks up a key in an association list.
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,{[]}) |-> {Nothing} || (_,_,{:}) |-> {Just,Nothing}}
name: Info
 lookup
precedence: Info
 no precedence defined
result-values: Info
 {Just,Nothing}
signature: Info
 Eq a => a -> [(a, b)] -> Maybe b
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 possibly non-reducible on same data term