[Home] Namespace Microsoft.FSharp.MLLib


Modules (as contributed by assembly 'mllib')

ModuleDescription
Microsoft.FSharp.MLLib.Arg Compatability command-line argument processor.
Microsoft.FSharp.MLLib.Array 1-dimensional (generic) arrays.
Microsoft.FSharp.MLLib.Array2 Basic operations on 2-dimensional arrays. Only available for F# on .NET 2.0. If using .NET 1.x then use Microsoft.FSharp.Compatiblity.CompatMatrix instead.
Microsoft.FSharp.MLLib.Array3 Basic operations on 3-dimensional arrays. Only available for F# on .NET 2.0.
Microsoft.FSharp.MLLib.Big_int Big_int compatability module for arbitrary sized integers.
Microsoft.FSharp.MLLib.Buffer Imperative buffers for building strings, a shallow interface to [[System.Text.StringBuilder]]
Microsoft.FSharp.MLLib.Byte Byte (8-bit) operations.
Microsoft.FSharp.MLLib.Bytearray Byte arrays. Arrays of bytes are guaranteed to be type-compatible with the C# byte[] type, regardless of the version of .NET used.
Microsoft.FSharp.MLLib.Char Unicode characters, i.e. the [[System.Char]] type. see also the operations in [[System.Char]] and the [[System.Text.Encoding]] interfaces if necessary.
Microsoft.FSharp.MLLib.Enum Simple operations to convert between .NET enuemration types and integers
Microsoft.FSharp.MLLib.Filename Common filename operations. This module is included to make it possible to cross-compile code with other ML compilers. See also [[System.IO.Path]]
Microsoft.FSharp.MLLib.Float ML-like operations on 64-bit System.Double floating point numbers.
Microsoft.FSharp.MLLib.Float32 ML-like operations on 32-bit System.Single floating point numbers.
Microsoft.FSharp.MLLib.Hashtbl Imperative hash tables. Shallow interface to [[Microsoft.FSharp.Collections]]. This module is included mainly to make it possible to cross-compile code with other ML compilers.
Microsoft.FSharp.MLLib.IEnumerable Basic operations on IEnumerables.
Microsoft.FSharp.MLLib.IEvent
Microsoft.FSharp.MLLib.Int32 Basic ML operations on 32-bit integers. The type int32 is identical to int.
Microsoft.FSharp.MLLib.Int64 Basic ML operations on 64-bit integers. The type int32 is identical to [[System.Int64]].
Microsoft.FSharp.MLLib.Lazy Delayed computations.
Microsoft.FSharp.MLLib.Lexing Lexing: ML-like lexing support This file maintains rough compatibility for lexbuffers used by some ML laxer generators. The lexbuf carries an associated pair of positions. Beware that only the "cnum" (absolute character number) field is automatically updated as each lexeme is matched. Upon each successful match the prior end position is transferred to be the start position and a new start position is allocated with an updated pos_cnum field.
Microsoft.FSharp.MLLib.List Basic operations on lists.
Microsoft.FSharp.MLLib.Map Immutable maps (aka dictionaries), implemented as binary trees.
Microsoft.FSharp.MLLib.Num
Microsoft.FSharp.MLLib.Obj
Microsoft.FSharp.MLLib.Option Basic operations on options.
Microsoft.FSharp.MLLib.Parsing Parsing: parser support for parsers produced by fsyacc.
Microsoft.FSharp.MLLib.Pervasives Pervasives: The default environment for F# code that uses MLLib.
Microsoft.FSharp.MLLib.Printexc Compatibility module to display data about exceptions. This module is only included to make it possible to cross-compile code with other ML compilers.
Microsoft.FSharp.MLLib.Printf Extensible printf-style formatting for numbers and other datatypes

Format specifications are strings with "%" markers indicating format placeholders. Format placeholders consist of:

    %[flags][width][.precision][type]
 

where the type is interpreted as follows: (note int = int32 for F#)

    %b:         bool, formatted as "true" or "false"
    %s:         string, formatted as its unescaped contents
    %d, %i:     int/int32, formatted as a signed decimal integer
    %u:         int/int32, formatted as an unsigned decimal integer
    %x, %X, %o: int/int32, formatted as an unsigned hexadecimal 
                (a-f)/Hexadecimal (A-F)/Octal integer
    %ld, %li, %lu, %lx, %lX, %lo: same, but an int64
    %nd, %ni, %nu, %nx, %nX, %no: same, but a nativeint
    %Ud, %Ui, %Uu, %Ux, %UX, %Uo: same, but an unsigned int32 (uint32)
    %Uld, %Uli, %Ulu, %Ulx, %UlX, %Ulo: same, but an unsigned int64 (uint64)
    %Und, %Uni, %Unu, %Unx, %UnX, %Uno: same, but an unsigned nativeint 
                                        (unativeint)
 
    %e, %E, %f, %g, %G: C-style floating point format specifications, i.e
 
          %e, %E: Signed value having the form [-]d.dddde[sign]ddd where 
                  d is a single decimal digit, dddd is one or more decimal
                  digits, ddd is exactly three decimal digits, and sign 
                  is + or -
 
          %f:     Signed value having the form [-]dddd.dddd, where dddd is one
                  or more decimal digits. The number of digits before the 
                  decimal point depends on the magnitude of the number, and 
                  the number of digits after the decimal point depends on 
                  the requested precision.
 
          %g, %G: Signed value printed in f or e format, whichever is 
                  more compact for the given value and precision.
 
 
    %M:     System.Decimal value
 
    %O:     Any value, printed by boxing the object and using it's ToString method(s)
 
    %a: a general format specifier, requires two arguments:
          (1) a function which accepts two arguments:
                (a) a context parameter of the appropriate type for the
                    given formatting function (e.g. an out_channel)
                (b) a value to print
               and which either outputs or returns appropriate text.
 
          (2) the particular value to print
 
 
    %t: a general format specifier, requires one argument:
          (1) a function which accepts a context parameter of the
              appropriate type for the given formatting function (e.g. 
              an out_channel)and which either outputs or returns 
              appropriate text.
 
 

Valid flags are:

     0: add zeros instead of spaces to make up the required width
     '-': left justify the result within the width specified
     '+': add a '+' character if the number is positive (to match a '-' sign 
          for negatives)
     ' ': add an extra space if the number is positive (to match a '-' 
              sign for negatives)
 

The printf '#' flag is not supported in this release and a compile-time error will be reported if it is used.

   Printf.printf "Hello %s, %d = %d * %d" "World" 6 2 3;
   Printf.sprintf "Hello %s" "World";
   Printf.printf "Hello %a" output_string "World";
 
Microsoft.FSharp.MLLib.ReadonlyArray
Microsoft.FSharp.MLLib.Set Immutable sets implemented via binary trees
Microsoft.FSharp.MLLib.Stream
Microsoft.FSharp.MLLib.String Compatibility module for ML string processing. Richer string operations are available via the member functions on strings and other functionality in System.String and System.Text.RegularExpressions types.
Microsoft.FSharp.MLLib.Sys Sys: Basic system operations (for ML compatibility) This module is only included to make it possible to cross-compile code with other ML compilers. It may be deprecated and/or removed in a future release. You may wish to use .NET functions directly instead.
Microsoft.FSharp.MLLib.UInt32 UInt32: ML-like operations on 32-bit System.UInt32 numbers.
Microsoft.FSharp.MLLib.UInt64 UInt64: ML-like operations on 64-bit System.UInt64 numbers.

See Also

Namespaces


Documentation for assembly mllib, version 1.1.10.1, generated using F# version 1.1.10.1