CurryInfo: base-3.4.0 / Data.List.mapAccumL

definition: Info
 
mapAccumL :: (acc -> x -> (acc, y)) -> acc -> [x] -> (acc, [y])
mapAccumL _ s []        =  (s, [])
mapAccumL f s (x:xs)    =  (s'',y:ys)
                           where (s', y ) = f s x
                                 (s'',ys) = mapAccumL f s' xs
demand: Info
 argument 3
deterministic: Info
 deterministic operation
documentation: Info
 
The `mapAccumL` function behaves like a combination of `map` and
`foldl`; it applies a function to each element of a list, passing
an accumulating parameter from left to right, and returning a final
value of this accumulator together with the new list.
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,{[]}) |-> {(,)} || (_,_,{:}) |-> {(,)}}
name: Info
 mapAccumL
precedence: Info
 no precedence defined
result-values: Info
 {(,)}
signature: Info
 (a -> b -> (a, c)) -> a -> [b] -> (a, [c])
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms