[Home] Module Microsoft.FSharp.Compatibility.OCaml.Pervasives.Pervasives


Type Definitions

TypeDescription
type exn Note: an abbreviation for Exception
type list The type of simple immutable lists Note: an abbreviation for List<'a>
type option The type of None/Some options Note: an abbreviation for Option<'a>
type ref The type of pointers to mutable reference cells Note: an abbreviation for Ref<'a>

Exceptions

ExceptionDescription
exception Failure The exception thrown by failure and many other F# functions A future release of F# may map this exception to a corresponding .NET exception. Note: an abbreviation for = Failure

Values

ValueDescription
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( ! ) : 'a ref -> 'a
Dereference a mutable reference cell
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( * ) : int -> int -> int
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( ** ) : float -> float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( + ) : int -> int -> int
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( - ) : int -> int -> int
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( / ) : int -> int -> int
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( := ) : 'a ref -> 'a -> unit
Assign to a mutable reference cell
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( < ) : 'a -> 'a -> bool
Structural less-than comparison
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( <= ) : 'a -> 'a -> bool
Structural less-than-or-equal comparison
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( <> ) : 'a -> 'a -> bool
Structural inequality
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( = ) : 'a -> 'a -> bool
Structural equality
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( > ) : 'a -> 'a -> bool
Structural greater-than
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( >= ) : 'a -> 'a -> bool
Structural greater-than-or-equal
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( @ ) : 'a list -> 'a list -> 'a list
Concatenate two lists.
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ( ^ ) : string -> string -> string
Concatenate two strings. The overlaoded operator '+' may also be used.
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val abs : int -> int
Absolute value of the given integer
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val acos : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val asin : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val atan : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val atan2 : float -> float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ceil : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val compare : 'a -> 'a -> int
Structural comparison
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val cos : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val cosh : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val decr : int ref -> unit
Decrement a mutable reference cell containing an integer
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val exit : int -> 'a
Exit the current hardware isolated process, if security settings permit, otherwise raise an exception. Calls System.Environment.Exit.
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val exp : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val failwith : string -> 'a
Throw a 'Failure' exception
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val float : int -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val floor : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val fst : ('a * 'b) -> 'a
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
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).
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ignore : 'a -> unit
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val incr : int ref -> unit
Increment a mutable reference cell containing an integer
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val infinity : float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val log : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val log10 : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val max : 'a -> 'a -> 'a
Maximum based on structural comparison
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val min : 'a -> 'a -> 'a
Minimum based on structural comparison
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val nan : float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val not : bool -> bool
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val raise : exn -> 'a
Throw an exception
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val ref : 'a -> 'a ref
Create a mutable reference cell
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val sin : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val sinh : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val snd : ('a * 'b) -> 'b
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val sqrt : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val tan : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val tanh : float -> float
[<OCamlCompatibilityAttribute
  ("Consider replacing uses of the functions accessible via Pervasives.* with their F# equivalents, usually by deleting 'Pervasives.'")>]
val truncate : float -> int

See Also

Microsoft.FSharp.Compatibility.OCaml.Pervasives


Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using F# Programming Language version 1.9.6.16