Javatpoint Logo
Javatpoint Logo

F# Structures

F# structure is a data structure which is used to organize data. It is value type and efficient than class. It does not allow let binding. You must declare fields by using val keyword. It allows defining fields but does not allow initialization. You can create constructors, mutable and immutable fields in structure.


F# Structure Example

Here, we have created a Book structure which contains book's details.


-------------------------Book's Details-------------------------
Title  : FSharp Programming
Author : Chris Smith
Price  : $100.00

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA