package ppxx

  1. Overview
  2. Docs
val (&) : ('a -> 'b) -> 'a -> 'b

I prefer (&) to (@@)

val (!!%) : ('a, Format.formatter, unit) format -> 'a

Synonym of Format.eprintf

val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c

flip f x y = f y x

val flip2 : ('a -> 'b -> 'c -> 'd) -> 'b -> 'c -> 'a -> 'd

flip2 f x y z = f y z x

module Format : sig ... end
module Option : sig ... end
module List : sig ... end
module String : sig ... end
module Hashtbl : sig ... end
module Filename : sig ... end
val protect : (unit -> 'a) -> ('a, exn) result

Catch the exceptions

val unprotect : ('a, exn) result -> 'a

Reraise the caught exception

val warnf : ('a, Format.t, unit, unit) format4 -> 'a

Wraps formatting between "@[Warning:@ "] and ["@]@."