CurryInfo: base-3.4.0 / Control.Monad.foldM

definition: Info
 
foldM :: (Monad m) => (b -> a -> m b) -> b -> [a] -> m b
foldM f z0 xs = foldr f' return xs z0
  where f' x k z = f z x >>= k
demand: Info
 argument 4
deterministic: Info
 deterministic operation
documentation: Info
 
The 'foldM' function is analogous to 'foldl', except that its result is
encapsulated in a monad.
failfree: Info
 (_, _, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_,_) |-> _}
name: Info
 foldM
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Monad c => (a -> b -> c a) -> a -> [b] -> c a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms