F# – Enumerations
F# Enumerations are a set of named integer constants. In F#, enumerations, also known as enums, are integral types where labels are assigned to a subset of the values. You…
F# Enumerations are a set of named integer constants. In F#, enumerations, also known as enums, are integral types where labels are assigned to a subset of the values. You…
F# delegates is a reference type variable that holds the reference to a method. The reference can be changed at runtime. F# delegates are similar to pointers to functions, in…
F# Generics allow you to delay the specification of the data type of programming elements in a class or a method until it is actually used in the program. In…
F# Basic I/O (Input-Output) includes − Reading from and writing into console.Reading from and writing into file. F# Basic I/O Core.Printf Module We have used the printf and the printfn functions for writing into…
The F# Mutable Dictionary<'TKey, 'TValue> class is the mutable analog of the F# map data structure and contains many of the same functions. Recapitulating from the Map chapter in F#, a map…
The F# Mutable Lists<'T> class represents a strongly typed list of objects that can be accessed by index. It is a mutable counterpart of the List class. It is similar to arrays,…
F# Arrays are fixed-size, zero-based, mutable collections of consecutive data elements that are all of the same types. Creating F# Arrays You can create arrays using various syntaxes and ways…
Variables in F# Mutable Data are immutable, which means once a variable is bound to a value, it can’t be changed. They are actually compiled as static read-only properties. The following example…
F# Discriminated Unions allow you to build up complex data structures representing the well-defined set of choices. For example, you need to build an implementation of a choice variable, which has two…
F# maps is a special kind of set that associates the values with keys. A map is created in similar way assets are created. Creating F# Maps Maps are created…