package shcaml

  1. Overview
  2. Docs
exception Bug
val id : 'a -> 'a
val const : 'a -> 'b -> 'a
val (%) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b
val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c
type (!'a, !'b) either =
  1. | Left of 'a
  2. | Right of 'b
val either : ('a, 'b) either -> ('a -> 'c) -> ('b -> 'c) -> 'c
val maybe : 'a option -> (unit -> 'b) -> ('a -> 'b) -> 'b
val oapply : ('a -> 'b) -> 'a option -> 'b option
val option_of_exn : (unit -> 'a) -> 'a option
val unwind_protect : (unit -> 'a) -> (unit -> 'b) -> 'a
val while_none : (unit -> 'a option) -> (unit -> 'b) -> 'a
val find' : ('a -> bool) -> 'a list -> 'a option
type protector = {
  1. protector : 'a. (unit -> 'a) -> 'a;
}
OCaml

Innovation. Community. Security.