To enable F# interactive on your computer:
Install Visual Studio Build Tools 2017 with F# compiler enabled on the Individual components tab. If you already have VS Build Tools or Visual Studio 2017, you can run the installer to modify the installation and choose to install F# compiler.
Install the latest stable Mono: https://www.mono-project.com/download/stable/.
Install the fsharp package as described here: https://fsharp.org/use/linux/.
JetBrains Rider includes a Read–Eval–Print Loop (REPL), which lets you experiment with F# code without compiling it.
Start a new F# Interactive session
Select a block of code in the editor and press Ctrl+\ or alternatively, press Alt+Enter and then choose Send selection to F# interactive.
JetBrains Rider will start a new interactive session in a new tab of the Run tool window and send the selected code to this session. If a F# interactive session is already running, the selected code will be appended to this session.
Choosefrom the menu.
In this case, JetBrains Rider will open an empty interactive session and reset the current F# interactive session if it is already running. You can also clear the current session at any time by clicking Reset on the toolbar.
As soon as the F# Interactive is started, you can write any F# expressions and evaluate them by pressing Enter.
F# Interactive will attempt to compile your code and execute it if successful. Otherwise the interpreter will return the error messages.