mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
fix: fix Set.find_last_map on OCaml 4.03
This commit is contained in:
parent
b6d99645ea
commit
ea0e4473a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue