package containers

  1. Overview
  2. Docs

Basic Int functions

type t = int
val compare : t -> t -> int
val equal : t -> t -> bool
val hash : t -> int
val sign : t -> int

sign i is one of -1, 0, 1

val neg : t -> t

neg i = - i

  • since 0.5
type 'a printer = Buffer.t -> 'a -> unit
type 'a formatter = Format.formatter -> 'a -> unit
type 'a random_gen = Random.State.t -> 'a
val random : int -> t random_gen
val random_small : t random_gen
val random_range : int -> int -> t random_gen
val pp : t printer
val print : t formatter
OCaml

Innovation. Community. Security.