CurryInfo: base-3.4.0 / Data.Maybe.listToMaybe

definition: Info
 
listToMaybe :: [a] -> Maybe a
listToMaybe []      = Nothing
listToMaybe (a : _) = Just a
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Return `Nothing` on an empty list or `Just x` where `x` is the first
list element.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({[]}) |-> {Nothing} || ({:}) |-> {Just}}
name: Info
 listToMaybe
precedence: Info
 no precedence defined
result-values: Info
 {Just,Nothing}
signature: Info
 [a] -> Prelude.Maybe a
solution-complete: Info
 operationally complete operation
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms