Module UtilsLib.Loop

module Loop: sig .. end

val fold_left : ('a -> int -> 'a) -> 'a -> int -> 'a

Loop.fold_left f v n calls f in a folded way over the v parameter n times.

val iter : (unit -> unit) -> int -> unit

Loop.iter f n calls f repeatedly n times.

val iteri : (int -> unit) -> int -> unit

Loop.iteri f n calls f repeatedly n times.