F# Cheatsheet This cheatsheet glances over some of the common syntax of F# 3.0. If you have any comments, corrections, or suggested additions, please open an issue or send a pull request to https://github.com/dungpa/fsharp-cheatsheet. Comments Block...
More
F# Cheatsheet This cheatsheet glances over some of the common syntax of F# 3.0. If you have any comments, corrections, or suggested additions, please open an issue or send a pull request to https://github.com/dungpa/fsharp-cheatsheet. Comments Block comments are placed between (* and *). Line comments start from // and continue until the end of the line. (* This is block comment *) // And this is line comment XML doc comments come after /// allowing us to use XML tags to generate documentation. /// The ‘let‘ keyword defines an (immutable) value let result = 1 + 1 = 2 Strings F# string type is an alias for System.String type. /// Create a string using string concatenation let hello = "Hello" + " World" Use verbatim strings preceded by @ symbol to avoid escaping control characters (except escaping " by ""). let verbatimXml = @"<book title=""Paradise Lost"">" We don’t even have to escape " with triple-quoted strings. let tripleXml = """<book title="Paradise Lost">""" Backslash strings ind
Less