33
loading...
This website collects cookies to deliver better user experience
dotnet
executable.dotnet
like so:dotnet new console --language F# -o MyFSharpApp
from()
and main()
. main()
is the entry point of the app, as seen by [<EntryPoint>]
.open System
// Define a function to construct a message to print
let from whom =
sprintf "from %s" whom
[<EntryPoint>]
let main argv =
let message = from "F#" // Call the function
printfn "Hello world %s" message
0 // return an integer exit code
from()
function takes the arg whom
and the function body prints a string using the function sprintf
.33