package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Overflow
exception NaN
type !'a numeric = 'a BatNumber.numeric = {
  1. zero : 'a;
  2. one : 'a;
  3. neg : 'a -> 'a;
  4. succ : 'a -> 'a;
  5. pred : 'a -> 'a;
  6. abs : 'a -> 'a;
  7. add : 'a -> 'a -> 'a;
  8. sub : 'a -> 'a -> 'a;
  9. mul : 'a -> 'a -> 'a;
  10. div : 'a -> 'a -> 'a;
  11. modulo : 'a -> 'a -> 'a;
  12. pow : 'a -> 'a -> 'a;
  13. compare : 'a -> 'a -> int;
  14. of_int : int -> 'a;
  15. to_int : 'a -> int;
  16. of_string : string -> 'a;
  17. to_string : 'a -> string;
  18. of_float : float -> 'a;
  19. to_float : 'a -> float;
}
module type Infix = sig ... end
module type Compare = sig ... end
module type RefOps = sig ... end
module type Numeric = sig ... end
module type Bounded = sig ... end
module type Discrete = sig ... end
module type NUMERIC_BASE = sig ... end
module MakeInfix (Base : BatNumber.NUMERIC_BASE) : sig ... end
module MakeCompare (Base : BatNumber.NUMERIC_BASE) : sig ... end
module MakeRefOps (Base : BatNumber.NUMERIC_BASE) : sig ... end
module MakeNumeric (Base : BatNumber.NUMERIC_BASE) : sig ... end
val generic_pow : zero:'a -> one:'a -> div_two:('a -> 'a) -> mod_two:('a -> 'a) -> mul:('a -> 'a -> 'a) -> 'a -> 'a -> 'a
OCaml

Innovation. Community. Security.