package links

  1. Overview
  2. Docs
exception EmptyOption
val val_of : 'a option -> 'a
val is_some : 'a option -> bool
val opt_app : ('a -> 'b) -> 'b -> 'a option -> 'b
val opt_map : ('a -> 'b) -> 'a option -> 'b option
val opt_split : ('a * 'b) option -> 'a option * 'b option
val opt_iter : ('a -> 'b) -> 'a option -> unit
val from_option : 'a -> 'a option -> 'a
val perhaps_apply : ('a -> 'a option) -> 'a -> 'a
val opt_as_list : 'a option -> 'a list
val opt_sequence : 'a option list -> 'a list option
val some : 'a -> 'a option
OCaml

Innovation. Community. Security.