package ezjs_min

  1. Overview
  2. Docs
type +'a t
val null : 'a t
val some : 'a -> 'a t
val undefined : 'a t
val def : 'a -> 'a t
val return : 'a -> 'a t
val coerce : 'a t -> 'a
val js_equals : 'a -> 'b -> bool
val is_none : 'a t -> bool
val map : ?none:'b t -> 'a t -> ('a0 -> 'b0) -> 'b t
val bind : ?none:'b t -> 'a t -> ('a0 -> 'b0 t) -> 'b t
val test : 'a t -> bool
val iter : 'a t -> ('a0 -> unit) -> unit
val case : 'a t -> (unit -> 'b) -> ('a0 -> 'b0) -> 'b1
val get : 'a t -> (unit -> 'a0) -> 'a1
val option : ?none:'a t -> 'a0 option -> 'a t
val to_option : 'a t -> 'a0 option
val aopt : ?none:'b t -> ('a -> 'b0) -> 'a0 option -> 'b t
val to_aopt : ('a -> 'b) -> 'a0 t -> 'b0 option
OCaml

Innovation. Community. Security.