package lambdapi

  1. Overview
  2. Docs
include module type of struct include Stdlib.Option end
val none : 'a option
val some : 'a -> 'a option
val value : 'a option -> default:'a -> 'a
val bind : 'a option -> ('a -> 'b option) -> 'b option
val join : 'a option option -> 'a option
val map : ('a -> 'b) -> 'a option -> 'b option
val iter : ('a -> unit) -> 'a option -> unit
val is_none : 'a option -> bool
val is_some : 'a option -> bool
val equal : ('a -> 'a -> bool) -> 'a option -> 'a option -> bool
val compare : ('a -> 'a -> int) -> 'a option -> 'a option -> int
val to_result : none:'e -> 'a option -> ('a, 'e) Stdlib.result
val to_list : 'a option -> 'a list
val to_seq : 'a option -> 'a Stdlib.Seq.t
type 'a t = 'a option
val is_None : 'a t -> bool
val get : 'a -> 'a option -> 'a
val map_default : ('a -> 'b) -> 'b -> 'a option -> 'b
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
module Monad : sig ... end
module Applicative : sig ... end
OCaml

Innovation. Community. Security.