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 -> ('a -> 'b) -> 'b t
val bind : ?none:'b t -> 'a t -> ('a -> 'b t) -> 'b t
val test : 'a t -> bool
val iter : 'a t -> ('a -> unit) -> unit
val case : 'a t -> (unit -> 'b) -> ('a -> 'b) -> 'b
val get : 'a t -> (unit -> 'a) -> 'a
val option : ?none:'a t -> 'a option -> 'a t
val to_option : 'a t -> 'a option
val aopt : ?none:'b t -> ('a -> 'b) -> 'a option -> 'b t
val to_aopt : ('a -> 'b) -> 'a t -> 'b option
OCaml

Innovation. Community. Security.