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_bind : ('a -> 'b option) -> '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
val (>>=?) : 'a option -> ('a -> 'b option) -> 'b option
val (||=?) : 'a option -> 'a option -> 'a option
val (>>==?) : 'a list -> ('a -> 'a option) -> 'a list option
val map_tryPick : (StringMap.key -> 'a -> 'b option) -> 'a StringMap.t -> 'b option
val list_tryPick : ('a -> 'b option) -> 'a list -> 'b option
OCaml

Innovation. Community. Security.