Advanced Functional Prog.


Interoperability with C#

F# can be used in "compilation" mode by defining a main function:

(** Program.fs **)
[<EntryPoint>]
let main argv = 
  printfn "%A" argv
  0

The preceding code can be obtained automatically by generating a project skeleton:

dotnet new console -lang "F#" -n "demo" -o .
dotnet run Tableau de mots

# create executable
dotnet build
bin/Debug/net7.0/demo Tableau de mots