package General

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module A : sig ... end

Signature

type t = A.t option
val some_if : bool -> A.t lazy_t -> t
val some_if' : bool -> A.t -> t
val is_some : t -> bool
val is_none : t -> bool
val value_def : t -> def:A.t -> A.t
val value : ?exc:exn -> t -> A.t
val or_failure : ('a, unit, string, string, string, t -> A.t) CamlinternalFormatBasics.format6 -> 'a
val map : t -> f:(A.t -> 'a) -> 'a option
val iter : t -> f:(A.t -> unit) -> unit
val filter : t -> f:(A.t -> bool) -> t
val filter_map : t -> f:(A.t -> 'a option) -> 'a option
val value_map : t -> def:'a -> f:(A.t -> 'a) -> 'a
OCaml

Innovation. Community. Security.