Home
Insert
Update snippet 'Hello world (F#)'
Title
Description
Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.
Source code
// Declare a local value (inferred type is string) let world = "world" // Using '%s' format specifier to include string parameter printfn "Hello %s!" world
Tags
printf
hello world
let
printf
hello world
let
Author
Link
Reference NuGet packages
If your snippet has external dependencies, enter the names of NuGet packages to reference, separated by a comma (
#r
directives are not required).
Update