O'Reilly logo

Expert F# 4.0, Fourth Edition by Antonio Cisternino, Adam Granicz, Don Syme

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2

image

Your First F# Program: Getting Started with F#

This chapter will cover simple interactive programming with F#. To begin, download and install F# from fsharp.org, if you don’t have it installed already. The sections that follow use F# Interactive (fsi.exe or fsharpi), a tool you can use to execute fragments of F# code interactively, and that is convenient for exploring the language. Along the way, you will see examples of the most important F# language constructs and many important libraries.

Creating Your First F# Program

Listing 2-1 shows your first complete F# program. You may not understand it all at first glance, but we will explain ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required