F# – how to use it
Up to this point, we have been discussing the general characteristics of F# without even taking into consideration FRP. In addition, we have seen some of the theoretical aspects of the language. They detailed the general nature of the programming that is functional through simple examples.
Through this section, we will show how you can leverage the features of F#: both syntactic and technical. We will precisely discuss this in the various sections of some constructors required to exploit the full potential of the language. In this way, it will be easier to introduce and above all understand FRP, which will be addressed later.
In detail, you will see the following:
Pattern Matching and pipeline for very concise code and functions
Record type and Discriminate Union to represent and query simple types in F#
Active Pattern to customize the code used in Pattern Matching
Pattern Matching and pipe forward
Pattern Matching is a very important model for comparison. In particular, through...