Skip to content

Module Printf.Args

The Args module defines a heterogeneous list type, which can be used as the argument of the l*printf(l, printf) functions. For more documentation, see the similar module Format.Args.

ocaml
type ('a, 'r) t = 
  | [] : ('r, 'r) t
  | :: : 'a * ('b, 'r) t -> ('a -> 'b, 'r) t
reasonml
type t('a, 'r) = 
  | [] : t('r, 'r)
  | ::('a, t('b, 'r)) : t('a => 'b, 'r)
;
ocaml
val apply : 'a -> ('a, 'r) t -> 'r
reasonml
let apply: 'a => t('a, 'r) => 'r;
ocaml
val (@) : ('a, 'r1) t -> ('r1, 'r2) t -> ('a, 'r2) t
reasonml
let (@): t('a, 'r1) => t('r1, 'r2) => t('a, 'r2);