/ Functional Programming

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
Alex Netkachov

Alex Netkachov

Alex likes functional programming, algorithms and code reviews. Apart from programming, his favourites are walking with his family in the parks and national trails and reading books.

Read More

Why not to stay updated if the subject is interesting? Join Telegram channel Alex@Net or follow alex_at_net on Twitter. Or just, use the comments form below.