(* Finds the zero based index of the first element that satisfies a predicate*)
val list_index: ('a -> bool) -> 'a list -> (int * 'a) option
val sharing_map: ('a -> 'a) -> 'a list -> 'a list
+val sharing_map_acc:
+ ('acc -> 'a -> 'acc * 'a) -> 'acc -> 'a list -> 'acc * 'a list
(* Iters in parallel on two lists until the first list is empty.
The second one can be shorter and is padded with a default value.
This function cannot fail. *)
val list_iter_default2: ('a -> 'b -> unit) -> 'a list -> 'b -> 'b list -> unit
+exception FailureAt of int
(* Checks a predicate in parallel on three lists, the first two having the same
length (otherwise it raises Invalid_argument). It stops when the first two
- lists are empty. The third one can be shorter and is padded with a default value. *)
+ lists are empty. The third one can be shorter and is padded with a default
+ value. It can also raise FailureAt when ??? *)
val list_forall_default3: ('a -> 'b -> 'c -> bool) -> 'a list -> 'b list -> 'c -> 'c list -> bool
val list_forall_default3_var: ('a -> 'b -> 'c -> bool) -> 'a list -> 'b list -> 'c -> 'c list -> bool
-exception FailureAt of int
-
(** split_nth n l
* @returns two list, the first contains at least n elements, the second the
* remaining ones