CurryInfo: base-3.4.0 / Prelude.takeWhile

definition: Info
 
takeWhile :: (a -> Bool) -> [a] -> [a]
takeWhile _ []     = []
takeWhile p (x:xs) = if p x then x : takeWhile p xs else []
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Returns longest prefix with elements satisfying a predicate.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]}) |-> {[]} || (_,{:}) |-> {:,[]}}
name: Info
 takeWhile
precedence: Info
 no precedence defined
result-values: Info
 {:,[]}
signature: Info
 (a -> Bool) -> [a] -> [a]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms