CurryInfo: currypp-3.2.0 / CPP.ICode.Parser.SQL.Symboltab.lookupFirstTable

definition: Info
 
lookupFirstTable :: String -> Symboltable a b -> Maybe a
lookupFirstTable k (ST (m,_) Nothing ) = Map.lookup k m
lookupFirstTable k (ST (m,_) (Just s)) = case Map.lookup k m of
                                       Just v -> Just v
                                       Nothing -> lookupFirstTable k s
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Lookupfunction: First looks up the key in the current scope (first table)
if it is not found the surrounding scope will be used and so on.
Returns Nothing if no value was found.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{ST}) |-> {Just,Nothing}}
name: Info
 lookupFirstTable
precedence: Info
 no precedence defined
result-values: Info
 {Just,Nothing}
signature: Info
 String -> Symboltable a b -> 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