package hack_parallel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t = 'a option
val is_none : 'a option -> bool
val is_some : 'a option -> bool
val value_map : 'a option -> default:'b -> f:('a -> 'b) -> 'b
val iter : 'a option -> f:('a -> unit) -> unit
val map2 : 'a option -> 'b option -> f:('a -> 'b -> 'c) -> 'c option
val call : 'a -> f:('a -> unit) option -> unit
val value : 'a option -> default:'a -> 'a
val to_array : 'a option -> 'a array
val to_list : 'a option -> 'a list
val min_elt : 'a -> cmp:'b -> 'a
val max_elt : 'a -> cmp:'b -> 'a
val sum : (module Hack_commutative_group.S with type t = 'a) -> 'b option -> f:('b -> 'a) -> 'a
val for_all : 'a option -> f:('a -> bool) -> bool
val exists : 'a option -> f:('a -> bool) -> bool
val mem : ?equal:('a -> 'a -> bool) -> 'a option -> 'a -> bool
val length : 'a option -> int
val is_empty : 'a option -> bool
val fold : 'a option -> init:'b -> f:('b -> 'a -> 'b) -> 'b
val count : 'a option -> f:('a -> bool) -> int
val find : 'a option -> f:('a -> bool) -> 'a option
val find_map : 'a option -> f:('a -> 'b option) -> 'b option
val equal : ('a -> 'b -> bool) -> 'a option -> 'b option -> bool
val some : 'a -> 'a option
val both : 'a option -> 'b option -> ('a * 'b) option
val first_some : 'a option -> 'a option -> 'a option
val some_if : bool -> 'a -> 'a option
val merge : 'a option -> 'a option -> f:('a -> 'a -> 'a) -> 'a option
val filter : 'a option -> f:('a -> bool) -> 'a option
val try_with : (unit -> 'a) -> 'a option
include sig ... end
val (>>=) : 'a option -> ('a -> 'b option) -> 'b option
val (>>|) : 'a option -> ('a -> 'b) -> 'b option
module Monad_infix : sig ... end
val bind : 'a option -> ('a -> 'b option) -> 'b option
val return : 'a -> 'a option
val map : 'a option -> f:('a -> 'b) -> 'b option
val join : 'a option option -> 'a option
val ignore : 'a option -> unit option
val all : 'a option list -> 'a list option
val all_ignore : unit option list -> unit option
OCaml

Innovation. Community. Security.