/ 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.

Screen-Shot-2017-08-20-at-14.45.56

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 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.