package xenstore

  1. Overview
  2. Docs
type ('a, 'b) either =
  1. | Right of 'a
  2. | Left of 'b
val exnhook : (exn -> unit) option Pervasives.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) -> 'a
val may : ('a -> 'b) -> 'a option -> 'b option

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

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

default value to d if v is none.

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

apply f on v if not none

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

Innovation. Community. Security.