Home » F# Records

F# Records

Records are used to store elements in the form of label and value. It can store any type of data. You are not bound to store same type values as list. Records are immutable by default so you can’t modify original records.

Syntax:


F# Creating and Accessing Record Example

Output:

{x = 2.0;  y = 1.0;  z = 0.0; } 2.000000 
Next TopicF# Enumerations

You may also like