HR F#: Hello World

The second F# challenge on HackerRank is to write Hello World program in F#. This is a fairly simple program.

This program defines F# function and calls it from the main method. The main method is just a typical application entry point.

The VS Code F# extension gives a nice type hints and autocomplete for F#. It is a bit easier to compile and run the script from terminal as it does not require project creation.

$ fsharpc fp-hello-world.fs && mono fp-hello-world.exe
Hello World