CurryInfo: icurry-3.2.0 / TermGraph.SVG.!?

definition: Info
 
(!?) :: [a] -> Int -> Maybe a
[]     !? _ = Nothing
(x:xs) !? i | i >  0 =  xs !? (i-1)
            | i == 0 = Just x
            | otherwise = Nothing
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Get index of a list and return it, if it exists. Return Nothing if not.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({[]},_) |-> {Nothing} || ({:},_) |-> {Just,Nothing}}
name: Info
 !?
precedence: Info
 no precedence defined
result-values: Info
 {Just,Nothing}
signature: Info
 [a] -> Prelude.Int -> Prelude.Maybe a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term