CurryInfo: finite-map-3.0.0 / Data.FiniteMap.lookupWithDefaultFM

definition:
lookupWithDefaultFM :: Eq key => FM key elt -> elt -> key -> elt
lookupWithDefaultFM fm deflt key
  = case lookupFM fm key of
      Nothing -> deflt
      Just elt -> elt
demand:
argument 2
deterministic:
deterministic operation
documentation:
--- Retrieves element bound to given key.
--- If the element is not contained in map, return
--- default value.
failfree:
(_, _, _, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_,_,_) |-> _}
name:
lookupWithDefaultFM
precedence:
no precedence defined
result-values:
_
signature:
Prelude.Eq a => FM a b -> b -> a -> b
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms