File: stdcompat__fun_s.mli.in

package info (click to toggle)
ocaml-stdcompat 19-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,516 kB
  • sloc: ml: 27,806; sh: 875; makefile: 246
file content (20 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module type S = sig
exception Finally_raised of exn 
(** Alias for {!Fun.Finally_raised} *)

external id : 'a -> 'a = "%identity"
(** @since 4.08.0: external id : 'a -> 'a = "%identity" *)

val const : 'a -> 'b -> 'a
(** @since 4.08.0: val const : 'a -> 'b -> 'a *)

val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c
(** @since 4.08.0: val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c *)

val negate : ('a -> bool) -> 'a -> bool
(** @since 4.08.0: val negate : ('a -> bool) -> 'a -> bool *)

val protect : finally:(unit -> unit) -> (unit -> 'a) -> 'a
(** @since 4.08.0: val protect : finally:(unit -> unit) -> (unit -> 'a) -> 'a *)

end