[Home] Module Microsoft.FSharp.Core.Pervasives


Pervasives: Additional bindings available at the top level

Values

ValueDescription
val ( ~% ) : Expr<'a> -> 'a
Special prefix operator for splicing typed expressions into quotation holes
val ( ~%% ) : Expr -> 'a
Special prefix operator for splicing untyped expressions into quotation holes
val any_to_string : 'a -> string
Convert any value to a string using a standard formatter Data is typically formatted in a structured format, e.g. lists are formatted using the "[1;2]" notation. The details of the format are not specified and may change from version to version and according to the flags given to the F# compiler. The format is intended to be human-readable, not machine readable. If alternative generic formats are required you should develop your own formatter, using the code in the implementation of this file as a starting point. Data from other .NET languages is formatted using a virtual call to Object.ToString() on the boxed version of the input.
val async : AsyncBuilder
Build an aysnchronous workflow using computation expression syntax
val dict : seq<'a * 'b> -> IDictionary<'a,'b>
Builds a lookup table from a sequence of key/value pairs. The key objects are indexed using generic hashing and equality.
val eprintf : TextWriterFormat<'a> -> 'a
Print to stderr using the given format
val eprintfn : TextWriterFormat<'a> -> 'a
Print to stderr using the given format, and add a newline
val failwithf : StringFormat<'a,'d> -> 'a
Print to a string buffer and raise an exception with the given result. Helper printers must return strings.
val fprintf : TextWriter -> TextWriterFormat<'a> -> 'a
Print to a file using the given format
val fprintfn : TextWriter -> TextWriterFormat<'a> -> 'a
Print to a file using the given format, and add a newline
val output_any : TextWriter -> 'a -> unit
Ouput any value to a channel using the same set of formatting rules as any_to_string
val prerr_any : 'a -> unit
Print any value to stderr using any_to_string.
val print_any : 'a -> unit
Print any value to stdin using any_to_string.
val printf : TextWriterFormat<'a> -> 'a
Print to stdout using the given format
val printfn : TextWriterFormat<'a> -> 'a
Print to stdout using the given format, and add a newline
val seq : seq<'a> -> seq<'a>
Builds a sequence using sequence expression syntax
val set : seq<'a> -> Set<'a>
Builds a set from a sequence of objects. The key objects are indexed using generic comparison
val sprintf : StringFormat<'a> -> 'a
Print to a string using the given format

See Also

Microsoft.FSharp.Core


Documentation for assembly FSharp.Core, version 1.9.6.0, generated using F# Programming Language version 1.9.6.0