package ocaml-webworker

  1. Overview
  2. Docs
val bind : 'a option -> f:('a -> 'b option) -> 'b option
val map : f:('a -> 'b) -> 'a option -> 'b option
val get : 'a option -> 'a
val value : default:'a -> 'a option -> 'a
val value_map : f:('a -> 'b) -> default:'b -> 'a option -> 'b
val iter : f:('a -> unit) -> 'a option -> unit
val cons : 'a option -> 'a list -> 'a list
module Infix : sig ... end
include module type of struct include Infix end
val return : 'a -> 'a option
val (>>=) : 'a option -> ('a -> 'b option) -> 'b option
val (>>|) : 'a option -> ('a -> 'b) -> 'b option
val to_list : 'a option -> 'a list
val is_some : 'a option -> bool
val print : (unit -> 'a -> string) -> unit -> 'a option -> string
OCaml

Innovation. Community. Security.