package odds

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The Algebra module lifts most of the integer-related functions of the Pervasives module to apply to dice expressions.

val (!) : int -> int t

! is inject.

val die : int t -> int t
val dice : int t -> int t -> int t
val (%) : int t -> int t -> int t

% is dice.

val (+) : int t -> int t -> int t
val (-) : int t -> int t -> int t
val (~-) : int t -> int t
val (~+) : int t -> int t
val succ : int t -> int t
val pred : int t -> int t
val abs : int t -> int t
val (*) : int t -> int t -> int t
val (/) : int t -> int t -> int t
val (mod) : int t -> int t -> int t
val max : int t -> int t -> int t
val min : int t -> int t -> int t
OCaml

Innovation. Community. Security.