Understanding F# Interactive
F# Interactive is a way of executing parts of a program interactively. Doing this enables you as a programmer to explore parts of the code and how it behaves. You will have a more dynamic feel for writing code. It's also more fun. F# Interactive is a REPL for F#. This means, it will read the code, evaluate it, and then print out the result. It will then do this over and over again. It's much like a command line, where the code is executed and the result is displayed to the user.
To execute a code in F# Interactive, have a look at the following steps:
- Select the source code you are interested in and press Alt + Enter.
- You can write a simple line of code that will just print a string to the REPL's output window:
printfn ...
Get F# for Quantitative Finance now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.