Module Indexed_foldable.Core_via_fold_right

Parameters

Signature

type ('a, 'index) t = ('a, 'index) Req.t

The type held by the Indexable Foldable.

val fold_map' : 'a -> ('a -> 'a -> 'a) -> ('b -> 'a) -> ('b, 'index) t -> 'a

Map each element of the Foldable to a Monoid an combine the result.

val fold_right : ('a -> 'b -> 'b) -> ('a, 'index) t -> 'b -> 'b

Same of List.fold_right for Foldable.