|
|
@ -97,4 +97,7 @@ exception Fail
|
|
|
|
(** Apply [f] to pairs of elements; raise [Fail] if the two lists have different lenghts. *)
|
|
|
|
(** Apply [f] to pairs of elements; raise [Fail] if the two lists have different lenghts. *)
|
|
|
|
val map2 : ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list
|
|
|
|
val map2 : ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(** Return the first non-None result found when applying f to elements of l *)
|
|
|
|
|
|
|
|
val find_map_opt : ('a -> 'b option) -> 'a list -> 'b option
|
|
|
|
|
|
|
|
|
|
|
|
val to_string : ('a -> string) -> 'a list -> string
|
|
|
|
val to_string : ('a -> string) -> 'a list -> string
|
|
|
|