package xenstore

  1. Overview
  2. Docs
type ('a, 'b) either =
  1. | Right of 'a
  2. | Left of 'b
val exnhook : (exn -> unit) option Stdlib.ref

apply the clean_f function after fct function has been called. * Even if fct raises an exception, clean_f is applied

val finally' : (unit -> 'a) -> (unit -> 'b) -> 'c
val may : ('a -> 'b) -> 'c option -> 'd option

if v is not none, apply f on it and return some value else return none.

val default : 'a -> 'b option -> 'c

default value to d if v is none.

val maybe : ('a -> unit) -> 'b option -> unit

apply f on v if not none

module String : sig ... end
val filter_out : 'a list -> 'b list -> 'b list
val filter_in : 'a list -> 'b list -> 'b list
val list_remove : 'a -> 'b list -> 'b list
val list_tl_multi : int -> 'a list -> 'a list
val hexify : string -> string
val unhexify : string -> string
val trim_path : string -> string
val join_by_null : string list -> string
OCaml

Innovation. Community. Security.