F# – Basic I/O
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…
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…
F# sets in F# is a data structure that acts as a collection of items without preserving the order in which items are inserted. Sets do not allow duplicate entries…
F# Sequences, like lists, also represent an ordered collection of values. However, the elements in a sequence or sequence expression are computed when required. They are not computed at once,…
In F# Lists, a list is an ordered, immutable series of elements of the same type. It is to some extent equivalent to a linked list data structure. The F#…