mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
fix: forgot const
This commit is contained in:
parent
ab5b3aa6af
commit
b25cf1ea00
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ let cc_update_funs funs f1 f2 =
|
|||
let shims_fun_pre_408 = "
|
||||
external id : 'a -> 'a = \"%identity\"
|
||||
let flip f x y = f y x
|
||||
let const x _ = x
|
||||
let negate f x = not (f x)
|
||||
let protect ~finally f =
|
||||
try
|
||||
|
|
@ -56,6 +57,7 @@ let shims_fun_mli_pre_408 = "
|
|||
(** This is an API imitating the new standard Fun module *)
|
||||
external id : 'a -> 'a = \"%identity\"
|
||||
val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c
|
||||
val const : 'a -> _ -> 'a
|
||||
val negate : ('a -> bool) -> 'a -> bool
|
||||
|
||||
val protect : finally:(unit -> unit) -> (unit -> 'a) -> 'a
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue