Value | Description |
val ( ! ) : 'a ref -> 'a |
Dereference a mutable reference cell
|
val ( * ) : int -> int -> int | |
val ( ** ) : float -> float -> float | |
val ( + ) : int -> int -> int | |
val ( - ) : int -> int -> int | |
val ( / ) : int -> int -> int | |
val ( := ) : 'a ref -> 'a -> unit |
Assign to a mutable reference cell
|
val ( < ) : 'a -> 'a -> bool |
Structural less-than comparison
|
val ( <= ) : 'a -> 'a -> bool |
Structural less-than-or-equal comparison
|
val ( <> ) : 'a -> 'a -> bool |
Structural inequality
|
val ( = ) : 'a -> 'a -> bool |
Structural equality
|
val ( > ) : 'a -> 'a -> bool |
Structural greater-than
|
val ( >= ) : 'a -> 'a -> bool |
Structural greater-than-or-equal
|
val ( @ ) : 'a list -> 'a list -> 'a list |
Concatenate two lists.
|
val ( ^ ) : string -> string -> string |
Concatenate two strings. The overlaoded operator '+' may also be used.
|
val abs : int -> int |
Absolute value of the given integer
|
val acos : float -> float | |
val asin : float -> float | |
val atan : float -> float | |
val atan2 : float -> float -> float | |
val ceil : float -> float | |
val compare : 'a -> 'a -> int |
Structural comparison
|
val cos : float -> float | |
val cosh : float -> float | |
val decr : int ref -> unit |
Decrement a mutable reference cell containing an integer
|
val exit : int -> 'a |
Exit the current hardware isolated process, if security settings permit,
otherwise raise an exception. Calls System.Environment.Exit.
|
val exp : float -> float | |
val failwith : string -> 'a |
Throw a 'Failure' exception
|
val float : int -> float | |
val float32 : int -> float32 | |
val floor : float -> float | |
val fst : ('a * 'b) -> 'a | |
val hash : 'a -> int |
The "hash" function is a structural hash function. It is
designed to return equal hash values for items that are
equal according to the polymorphic equality
function Pervasives.(=) (i.e. the standard "=" operator). The exact
behaviour of the function can be adjusted on a type-by-type
basis by implementing the IStructuralHash interface for each type.
|
val ignore : 'a -> unit | |
val incr : int ref -> unit |
Increment a mutable reference cell containing an integer
|
val invalid_arg : string -> 'a |
Throw an Invalid_argument exception
|
val log : float -> float | |
val log10 : float -> float | |
val max : 'a -> 'a -> 'a |
Maximum based on structural comparison
|
val min : 'a -> 'a -> 'a |
Minimum based on structural comparison
|
val not : bool -> bool | |
val raise : exn -> 'a |
Throw an exception
|
val ref : 'a -> 'a ref |
Create a mutable reference cell
|
val sin : float -> float | |
val sinh : float -> float | |
val snd : ('a * 'b) -> 'b | |
val sqrt : float -> float | |
val tan : float -> float | |
val tanh : float -> float | |
val truncate : float -> int | |