CurryInfo: base-3.4.0 / Data.List.isPrefixOf

definition: Info
 
isPrefixOf :: Eq a => [a] -> [a] -> Bool
isPrefixOf []     _      = True
isPrefixOf (_:_)  []     = False
isPrefixOf (x:xs) (y:ys) = x==y && (isPrefixOf xs ys)
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Checks whether a list is a prefix of another.
@param xs - a list
@param ys - a list
@return `True` if `xs` is a prefix of `ys`
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]},_) |-> {True} || (_,{:},{[]}) |-> {False} || (_,{:},{:}) |-> _}
name: Info
 isPrefixOf
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Eq a => [a] -> [a] -> Prelude.Bool
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms