fix: fix Set.find_last_map on OCaml 4.03

This commit is contained in:
Fardale 2023-03-31 12:14:03 +02:00
parent b6d99645ea
commit ea0e4473a8

View file

@ -156,7 +156,7 @@ module Make (O : Map.OrderedType) = struct
(* Use find_last which is linear time on OCaml < 4.05 *) (* Use find_last which is linear time on OCaml < 4.05 *)
let find_last_map f m = let find_last_map f m =
let res = ref None in let res = ref None in
let _ = S.find_last_opt let _ = find_last_opt
(fun x -> (fun x ->
match f x with match f x with
| None -> false | None -> false