csharpfftfsharpintegrationinterpolationlinear-algebramathdifferentiationmatrixnumericsrandomregressionstatisticsmathnet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
559 lines
56 KiB
559 lines
56 KiB
<HTML><HEAD><TITLE>Microsoft.FSharp.Compatibility.OCaml.Pervasives</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
|
|
<br><dl>
|
|
<dt></dt><dd>
|
|
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.Compatibility.html'>Microsoft.FSharp.Compatibility</a>.<a href='Microsoft.FSharp.Compatibility.OCaml.html'>OCaml</a>.Pervasives </h1><br>
|
|
</dd>
|
|
<dt></dt><dd>
|
|
<table>
|
|
<tr valign='top'><td><summary>
|
|
Pervasives: Additional OCaml-compatible bindings
|
|
</summary>
|
|
<dt><h3>Modules (as contributed by assembly 'FSharp.PowerPack')</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=30%>Module</th><th>Description</th></tr>
|
|
<tr valign="top"><td><a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.InChannel.html'>Microsoft.FSharp.Compatibility.OCaml.Pervasives.InChannel</a></td><td></td></tr>
|
|
<tr valign="top"><td><a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.OutChannel.html'>Microsoft.FSharp.Compatibility.OCaml.Pervasives.OutChannel</a></td><td></td></tr>
|
|
<tr valign="top"><td><a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.Pervasives.html'>Microsoft.FSharp.Compatibility.OCaml.Pervasives.Pervasives</a></td><td></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
<dt><h3>Type Definitions</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=30%>Type</th><th>Description</th></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__format-3.html'>format</a></td><td> Note: an abbreviation for <tt><a href='../FSharp.Core/Microsoft.FSharp.Text.type_Format-4.html'>Format</a><'a,'b,'c,'c></tt></td></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__format4-4.html'>format4</a></td><td> Note: an abbreviation for <tt><a href='../FSharp.Core/Microsoft.FSharp.Text.type_Format-4.html'>Format</a><'a,'b,'c,'d></tt></td></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__fpclass.html'>fpclass</a></td><td></td></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a></td><td><summary>
|
|
A pseudo-abstraction over binary and textual input channels.
|
|
OCaml-compatible channels conflate binary and text IO, and for this reasons their
|
|
use from F# is somewhat deprecated (direct use of System.IO StreamReader, TextReader and
|
|
BinaryReader objects is preferred, e.g. see System.IO.File.OpenText).
|
|
Well-written OCaml-compatible code that simply opens either a channel in text or binary
|
|
mode and then does text or binary I/O using the OCaml-compatible functions below
|
|
will work, though care must be taken with regard to end-of-line characters (see
|
|
input_char below).
|
|
|
|
This library pretends that an in_channel is just a System.IO.TextReader. Channel values
|
|
created using open_in_bin maintain a private System.IO.BinaryReader, which will be used whenever
|
|
you do I/O using this channel.
|
|
|
|
InChannel.of_BinaryReader and InChannel.of_StreamReader allow you to build input
|
|
channels out of the corresponding .NET abstractions.
|
|
</summary> Note: an abbreviation for <tt><a href='http://msdn2.microsoft.com/en-us/library/System.IO.TextReader.aspx'>TextReader</a></tt></td></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__open_flag.html'>open_flag</a></td><td><summary>
|
|
This type is present primarily for compatibility with other versions of ML. When
|
|
not cross-compiling we recommend using the .NET I/O libraries
|
|
</summary></td></tr>
|
|
<tr valign="top"><td>type <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a></td><td><summary>
|
|
An pseudo-abstraction over binary and textual output channels.
|
|
OCaml-compatible channels conflate binary and text IO, and for this reasons their
|
|
use from F# is somewhat deprecated The direct use of System.IO StreamWriter, TextWriter and
|
|
BinaryWriter objects is preferred, e.g. see System.IO.File.CreateText). Well-written OCaml code
|
|
that simply opens either a channel in text or binary mode and then does text
|
|
or binary I/O using the OCaml functions will work, though care must
|
|
be taken with regard to end-of-line characters (see output_char below).
|
|
|
|
This library pretends that an out_channel is just a System.IO.TextWriter. Channels
|
|
created using open_out_bin maintain a private System.IO.BinaryWriter, which will be used whenever
|
|
do I/O using this channel.
|
|
</summary> Note: an abbreviation for <tt><a href='http://msdn2.microsoft.com/en-us/library/System.IO.TextWriter.aspx'>TextWriter</a></tt></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
<dt><h3>Exceptions</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=40%>Exception</th><th>Description</th></tr>
|
|
<tr valign="top"><td>exception <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type_Assert_failure.html'>Assert_failure</a></td><td><summary>
|
|
The exception thrown by 'assert' failures.
|
|
A future release of F# may map this exception to a corresponding .NET exception.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td>exception <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type_Division_by_zero.html'>Division_by_zero</a></td><td></td></tr>
|
|
<tr valign="top"><td>exception <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type_End_of_file.html'>End_of_file</a></td><td></td></tr>
|
|
<tr valign="top"><td>exception <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type_Exit.html'>Exit</a></td><td></td></tr>
|
|
<tr valign="top"><td>exception <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type_Match_failure.html'>Match_failure</a></td><td><summary>
|
|
Non-exhaustive match failures will raise Match failures
|
|
A future release of F# may map this exception to a corresponding .NET exception.
|
|
</summary> Note: an abbreviation for <tt>= <a href='../FSharp.Core/Microsoft.FSharp.Core.type_MatchFailure.html'>MatchFailure</a></tt></td></tr>
|
|
<tr valign="top"><td>exception <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type_Out_of_memory.html'>Out_of_memory</a></td><td></td></tr>
|
|
<tr valign="top"><td>exception <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type_Stack_overflow.html'>Stack_overflow</a></td><td></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
<dt><h3>Values</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=60%>Value</th><th>Description</th></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Using the physical inequality operator '!=' is not recommended except in cross-compiled code. Consider using generic structual inequality 'x <> y' or 'not(LanguagePrimitives.PhysicalEquality x y)'")>]
|
|
val ( != ) : 'a -> 'a -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
|
|
Negation of the '==' operator, see also Obj.eq
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x * y' instead of 'x *. y'")>]
|
|
val ( *. ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x + y' instead of 'x +. y'")>]
|
|
val ( +. ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML. In F#
|
|
the overloaded operators may be used.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x - y' instead of 'x -. y'")>]
|
|
val ( -. ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML. In F#
|
|
the overloaded operators may be used.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'arr.[idx]' instead")>]
|
|
val ( .() ) : 'a <a href='../FSharp.Core/Microsoft.FSharp.Core.type__array-1.html'>array</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> 'a</pre></td><td><summary>
|
|
1D Array element get-accessor ('getter')
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'arr.[idx] <- v' instead")>]
|
|
val ( .()<- ) : 'a <a href='../FSharp.Core/Microsoft.FSharp.Core.type__array-1.html'>array</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> 'a -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
1D Array element set-accessor ('setter')
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x / y' instead of 'x /. y'")>]
|
|
val ( /. ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML. In F#
|
|
the overloaded operators may be used.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Using the physical equality operator '==' is not recommended except in cross-compiled code. Consider using generic structural equality 'x = y' or 'LanguagePrimitives.PhysicalEquality x y'")>]
|
|
val ( == ) : 'a -> 'a -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
|
|
Reference/physical equality.
|
|
True if boxed versions of the inputs are reference-equal, OR if
|
|
both are value types and the implementation of Object.Equals for the type
|
|
of the first argument returns true on the boxed versions of the inputs.
|
|
|
|
In normal use on reference types or non-mutable value types this function
|
|
has the following properties:
|
|
- returns 'true' for two F# values where mutation of data
|
|
in mutable fields of one affects mutation of data in the other
|
|
- will return 'true' if (=) returns true
|
|
- hashq will return equal hashes if (==) returns 'true'
|
|
|
|
The use on mutable value types is not recommended.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator '+x' instead of '+. x'")>]
|
|
val ( ~+. ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML. In F#
|
|
the overloaded operators may be used.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator '-x' instead of '-. x'")>]
|
|
val ( ~-. ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML. In F#
|
|
the overloaded operators may be used.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded F# library function 'abs' instead")>]
|
|
val abs_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x >>> y' instead of 'x asr y'. The precedence of these operators differs, so you may need to add parentheses")>]
|
|
val asr : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val bool_of_string : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'char' instead")>]
|
|
val char_of_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__char.html'>char</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val classify_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__fpclass.html'>fpclass</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'channel.Close()' instead")>]
|
|
val close_in : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Close the channel
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.Close()' instead, or create the channel via a 'use' binding to ensure automatic cleanup")>]
|
|
val close_out : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Close the given output channel
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val epsilon_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML
|
|
The smallest value that when added to 1.0 gives a different value to 1.0
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded conversion function 'float' instead")>]
|
|
val float_of_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded conversion function 'float' instead")>]
|
|
val float_of_string : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'channel.Flush()' instead")>]
|
|
val flush : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Flush all pending output on the channel to the physical
|
|
output device.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.BaseStream.Length' instead")>]
|
|
val in_channel_length : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Return the length of the input channel
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.Read(buffer,index,count)' instead")>]
|
|
val input : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__byte.html'>byte</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__[]-1.html'>[]</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Attempt to input the given number of bytes from the channel, writing them into the
|
|
buffer at the given start position. Does not block if the bytes are not available.
|
|
|
|
The use of this function with a channel performing byte-to-character translation (e.g. one
|
|
created with open_in, open_in_utf8 or open_in_encoded, or one
|
|
or built from a StreamReader or TextReader) is not recommended.
|
|
Instead, open the channel using open_in_bin or InChannel.of_BinaryReader.
|
|
|
|
If used with a StreamReader channel, i.e. one created using
|
|
open_in, open_in_utf8 or open_in_encoded, or one
|
|
or built from a StreamReader, this function reads bytes directly from the underlying
|
|
BaseStream. This may not be appropriate if any other input techniques are being
|
|
used on the channel.
|
|
|
|
If used with a TextReader channel (e.g. stdin), this function reads characters from the
|
|
stream and then fills some of the byte array with the decoding of these into
|
|
bytes, where the decoding is performed using the System.Text.Encoding.Default encoding
|
|
|
|
Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.ReadInt32()' on a BinaryReader instead")>]
|
|
val input_binary_int : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Input a binary integer from a binary channel. Compatible with output_binary_int.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the 'Read()' method on a 'BinaryReader' instead, which returns -1 if no byte is available")>]
|
|
val input_byte : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Input a single byte.
|
|
For text channels this only accepts characters with a UTF16 encoding that fits in a byte, e.g. ASCII.
|
|
Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the 'channel.Read()' method instead, which returns -1 if no character is available")>]
|
|
val input_char : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__char.html'>char</a></pre></td><td><summary>
|
|
Input a single character. Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.Read(buffer,index,count)' instead")>]
|
|
val input_chars : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__char.html'>char</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__[]-1.html'>[]</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Attempt to input characters from a channel. Does not block if inpout is not available.
|
|
Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
|
|
No CRLF translation is done on input, even in text mode. That is, if an input file
|
|
has '\r\n' (CRLF) line terminators both characters will be seen in the input.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the 'channel.ReadLine()' method instead")>]
|
|
val input_line : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
|
|
Input a single line. Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider deserializing using an object of type 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter' method instead")>]
|
|
val input_value : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> 'a</pre></td><td><summary>
|
|
Input a single serialized value from a binary stream. Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator '-x' instead of 'int_neg x'")>]
|
|
val int_neg : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Negation on integers of the 'int' type
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'int' instead")>]
|
|
val int_of_char : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__char.html'>char</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'int' instead")>]
|
|
val int_of_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'int' instead")>]
|
|
val int_of_string : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>val invalid_arg : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> 'a</pre></td><td><summary>
|
|
Throw an Invalid_argument exception
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.ArgumentException' instead")>]
|
|
val Invalid_argument : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__exn.html'>exn</a></pre></td><td><summary>
|
|
The exception thrown by <tt>invalid_arg</tt> and misues of F# library functions
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x &&& y' instead of 'x land y'. The precedence of these operators differs, so you may need to add parentheses")>]
|
|
val land : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val ldexp : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator '~~~x' instead of 'lnot x'")>]
|
|
val lnot : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x ||| y' instead of 'x lor y'. The precedence of these operators differs, so you may need to add parentheses")>]
|
|
val lor : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x <<< y' instead of 'x lsl y'. The precedence of these operators differs, so you may need to add parentheses")>]
|
|
val lsl : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x >>> y' on an unsigned type instead of 'x lsr y'. The precedence of these operators differs, so you may need to add parentheses")>]
|
|
val lsr : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x ^^^ y' instead of 'x lxor y'. The precedence of these operators differs, so you may need to add parentheses")>]
|
|
val lxor : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Double.MaxValue' instead")>]
|
|
val max_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML
|
|
The highest representable positive value in the 'float' type
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'System.Int32.MaxValue' instead")>]
|
|
val max_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
The highest representable value in the 'int' type
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val min_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML
|
|
The lowest non-denormalized positive IEEE64 float
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'System.Int32.MinValue' instead")>]
|
|
val min_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
The lowest representable value in the 'int' type
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'x % y' instead of 'x mod y'. The precedence of these operators differs, so you may need to add parentheses")>]
|
|
val mod : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using the '%' operator instead")>]
|
|
val mod_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val modf : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> * <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using '-infinity' instead")>]
|
|
val neg_infinity : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
This value is present primarily for compatibility with other versions of ML
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("This is a synonym for 'System.Collections.Generic.KeyNotFoundException'")>]
|
|
val Not_found<'a> : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__exn.html'>exn</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.IO.File.OpenText(path)' instead")>]
|
|
val open_in : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a></pre></td><td><summary>
|
|
Open the given file to read.
|
|
|
|
In the absence of an explicit encoding (e.g. using Open_encoding) open_in
|
|
uses the default text encoding (System.Text.Encoding.Default). If you want to read a file
|
|
regardless of encoding then you should use binary modes. Note that .NET's
|
|
"new StreamReader" function defaults to use a utf8 encoding, and also attempts
|
|
to determine an automatic encoding by looking for "byteorder-marks" at the head
|
|
of a text file. This function does not do this.
|
|
|
|
No CR-LF translation is done on input.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'new System.IO.BinaryReader(System.IO.File.OpenRead(path))' and changing your type to be a BinaryReader instead")>]
|
|
val open_in_bin : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a></pre></td><td><summary>
|
|
Open the given file to read in binary-mode
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("For advanced I/O consider using the System.IO namespace instead")>]
|
|
val open_in_gen : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__open_flag.html'>open_flag</a> <a href='../FSharp.Core/Microsoft.FSharp.Collections.type__list-1.html'>list</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a></pre></td><td><summary>
|
|
Open the given file in the mode specified by the given flags
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.IO.File.CreateText(path)' instead")>]
|
|
val open_out : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a></pre></td><td><summary>
|
|
Open the given file to write in text-mode using the
|
|
System.Text.Encoding.Default encoding
|
|
|
|
See output_char for a description of CR-LF translation
|
|
done on output.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'new System.IO.BinaryWriter(System.IO.File.Create(path))' and changing your type to be a BinaryWriter instead")>]
|
|
val open_out_bin : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a></pre></td><td><summary>
|
|
Open the given file to write in binary-mode
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("For advanced I/O consider using the System.IO namespace")>]
|
|
val open_out_gen : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__open_flag.html'>open_flag</a> <a href='../FSharp.Core/Microsoft.FSharp.Collections.type__list-1.html'>list</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a></pre></td><td><summary>
|
|
Open the given file to write in the mode according to the specified flags
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.BaseStream.Length' instead")>]
|
|
val out_channel_length : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Return the length of the output channel.
|
|
Raise an exception if not an app
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.Write(buffer,index,count)' instead")>]
|
|
val output : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__byte.html'>byte</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__[]-1.html'>[]</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Write the given range of bytes to the output channel.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'channel.Write(int)' instead")>]
|
|
val output_binary_int : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Write the given integer to the output channel in binary format.
|
|
Only valid on binary channels.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'channel.Write(byte)' instead")>]
|
|
val output_byte : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Write the given byte to the output channel. No CRLF translation is
|
|
performed.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.Write(bytes,0,bytes.Length)' instead")>]
|
|
val output_bytearray : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__byte.html'>byte</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__[]-1.html'>[]</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Write all the given bytes to the output channel. No CRLF translation is
|
|
performed.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'channel.Write(char)' instead")>]
|
|
val output_char : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__char.html'>char</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Write the given Unicode character to the output channel.
|
|
|
|
If the output channel is a binary stream and the UTF-16 value of the Unicode character is greater
|
|
than 255 then ArgumentException is thrown.
|
|
|
|
No CRLF translation is done on output. That is, if the output character is
|
|
'\n' (LF) characters they will not be written as '\r\n' (CRLF) characters, regardless
|
|
of whether the underlying operating system or output stream uses CRLF as the default
|
|
line-feed character.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using 'channel.Write(string)' instead")>]
|
|
val output_string : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Write the given Unicode string to the output channel. See output_char for the treatment of
|
|
'\n' characters within the string.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider serializing using an object of type 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter' instead")>]
|
|
val output_value : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> 'a -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Serialize the given value to the output channel.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.BaseStream.Position' property instead")>]
|
|
val pos_in : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Report the current position in the input channel
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.BaseStream.Position' on a TextWriter or '.Position' on a Stream instead")>]
|
|
val pos_out : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Return the current position in the output channel, measured from the
|
|
start of the channel. Not valid on all channels.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val pred : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
n-1 (no overflow checking)
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Error.Write(char)' instead")>]
|
|
val prerr_char : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__char.html'>char</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Print a character to the stderr stream
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Error.WriteLine(string)' instead")>]
|
|
val prerr_endline : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Error.Write(double)' instead")>]
|
|
val prerr_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Error.Write(int)' instead")>]
|
|
val prerr_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Error.WriteLine()' instead")>]
|
|
val prerr_newline : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Error.Write(string)' instead")>]
|
|
val prerr_string : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Write(char)' instead")>]
|
|
val print_char : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__char.html'>char</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>val print_endline : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Write(double)' instead")>]
|
|
val print_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Write(int)' instead")>]
|
|
val print_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.WriteLine()' instead")>]
|
|
val print_newline : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.Write(string)' instead")>]
|
|
val print_string : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.ReadLine() |> float' instead")>]
|
|
val read_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
Read a floating point number from the console.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.ReadLine() |> int' instead")>]
|
|
val read_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Read an integer from the console.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.Console.ReadLine()' instead")>]
|
|
val read_line : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
|
|
Read a line from the console, without the end-of-line character.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val really_input : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__byte.html'>byte</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__[]-1.html'>[]</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Reads bytes from the channel. Blocks if the bytes are not available.
|
|
See 'input' for treatment of text channels.
|
|
Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.BaseStream.Seek' method instead, or using a 'System.IO.BinaryReader' and related types for binary I/O")>]
|
|
val seek_in : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Reads bytes from the channel. Blocks if the bytes are not available.
|
|
For text channels this only accepts UTF-16 bytes with an encoding less than 256.
|
|
Raise End_of_file (= System.IO.EndOfStreamException) if end of file reached.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'channel.BaseStream.Seek' on a TextReader or 'channel.Seek' on a Stream instead")>]
|
|
val seek_out : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Set the current position in the output channel, measured from the
|
|
start of the channel.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using 'System.IO.BinaryReader' and related types for binary I/O")>]
|
|
val set_binary_mode_in : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__in_channel.html'>in_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Set the binary mode to true or false. If the binary mode is changed from "true" to
|
|
"false" then a StreamReader is created to read the binary stream. The StreamReader uses
|
|
the default text encoding System.Text.Encoding.Default
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("For advanced I/O consider using the System.IO namespace")>]
|
|
val set_binary_mode_out : <a href='Microsoft.FSharp.Compatibility.OCaml.Pervasives.type__out_channel.html'>out_channel</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Set the binary mode. If the binary mode is changed from "true" to
|
|
"false" then a StreamWriter is created to write the binary stream. The StreamWriter uses
|
|
the default text encoding System.Text.Encoding.Default.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'string' instead")>]
|
|
val string_of_bool : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'string' instead")>]
|
|
val string_of_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using the overloaded operator 'string' instead")>]
|
|
val string_of_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ()>]
|
|
val succ : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
n+1 (no overflow checking)
|
|
</summary></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
<dt><h3>Active Patterns</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=60%>Active Pattern</th><th>Description</th></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider matching against 'System.ArgumentException' instead")>]
|
|
val ( |Invalid_argument|_| ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__exn.html'>exn</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__option-1.html'>option</a></pre></td><td></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("This is a synonym for 'System.Collections.Generic.KeyNotFoundException'")>]
|
|
val ( |Not_found|_| ) : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__exn.html'>exn</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__option-1.html'>option</a></pre></td><td></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
</td></tr>
|
|
<tr valign='top'><td>
|
|
<dt><h3>See Also</h3></dt><dd>
|
|
<a href="Microsoft.FSharp.Compatibility.OCaml.html">Microsoft.FSharp.Compatibility.OCaml</a> </dd>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
|
|
</BODY></HTML>
|
|
|