Module type Base__.Indexed_container_intf.Indexed_container

module type S1 = S1

Generic definitions of foldi and iteri in terms of fold.

E.g.: iteri ~fold t ~f = ignore (fold t ~init:0 ~f:(fun i x -> f i x; i + 1)) .

val foldi : fold:('t'a'accumfold ‑> ('t'a'accumfoldi
val iteri : fold:('t'a, int) fold ‑> ('t'aiteri

Generic definitions of indexed container operations in terms of foldi.

val counti : foldi:('t'a, int) foldi ‑> 't ‑> f:(int ‑> 'a ‑> bool) ‑> int

Generic definitions of indexed container operations in terms of iteri.

val existsi : iteri:('t'aiteri ‑> 't ‑> f:(int ‑> 'a ‑> bool) ‑> bool
val for_alli : iteri:('t'aiteri ‑> 't ‑> f:(int ‑> 'a ‑> bool) ‑> bool
val findi : iteri:('t'aiteri ‑> 't ‑> f:(int ‑> 'a ‑> bool) ‑> (int * 'a) option
val find_mapi : iteri:('t'aiteri ‑> 't ‑> f:(int ‑> 'a ‑> 'b option) ‑> 'b option
module Make : functor (T : Make_arg) -> S1 with type t := a T.t