package lambdapi

  1. Overview
  2. Docs
type 'a t = 'a option
val is_None : 'a t -> bool
val get : 'a -> 'a option -> 'a
val map : ('a -> 'b) -> 'a t -> 'b t
val map_default : ('a -> 'b) -> 'b -> 'a option -> 'b
val bind : ('a -> 'b t) -> 'a t -> 'b t
val iter : ('a -> unit) -> 'a t -> unit
val fold : ('a -> 'b -> 'a) -> 'a -> 'b option -> 'a
val cmp : 'a Base.cmp -> 'a option Base.cmp
val eq : 'a Base.eq -> 'a option Base.eq
val pp : 'a Base.pp -> 'a option Base.pp
OCaml

Innovation. Community. Security.