Module Foldable.Core_via_fold_right

Parameters

Signature

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.