/ 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 Netkachov is a Senior Software Developer, currently working in Central London on new generation of energy trading solutions for brokers, traders and exchanges.

Read More

Why not to chat about this post? Join Telegram group Alex@Net or message on Twitter to alex_at_net. Alternatively, use the comments form below.