Introduction
This series of posts will introduce you to the world of functional programming (FP) in F#. Rather than start with theory or a formal definition, I thought that I'd start with a typical business problem and look at how we can use some of the functional programming features of F# to solve it.
Setting up your environment
Install F# (Installing the dotnet core SDK will install F#)
Install VSCode with the ionide extension (VS2019 or JetBrains Rider will work as well)
Open VSCode and open a blank folder to store your code.
Add a new file and name it first.fsx
Type 1 = 1 into the file.
Highlight the code and press ALT + ENTER
You should see F# Interactive (FSI) open in your Terminal and be able to see 'val it : bool = true'
If all is OK, let's take a look at a simple business Use Case and see how we can use functional programming in F# to implement it.
Stage 1 - The Problem
This problem comes from a post by Chris Roff (https://medium.com/@bddkickstarter/functional-bdd-5014c880c935) where he looks at using F# and BDD together.