Foldable.Core_via_fold_map
module Req : Preface_specs.Foldable.WITH_FOLD_MAP
type 'a t = 'a Req.t
The type held by Foldable
.
val fold_map' : 'a -> ('a -> 'a -> 'a) -> ('b -> 'a) -> 'b t -> 'a
Map each element of the Foldable
to a Monoid
an combine the result.
val fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
Same of List
.fold_right for Foldable
.