(
list
(
γ
)
, 
β
)
fold_map (
(
α
, 
β
(
γ
, 
β
)
)
 
f
, 
list
(
α
)
 
l
, 
β
 
acc)
Map a list while propagating an accumulator
(l',accN) = fold_map(op, l, acc1)
is equivalent to
l' = List.map(map_elt,l)
accN = List.fold(fold_elt,l,acc1)
when
map_elt(x) = op(x,<acc>).f1
fold_elt(x,acc) = op(x,acc).f2

Comments

The browser you use is not supported by this application, probably because it lacks some critical features.
For a better experience, please consider using this application with a supported browser.