O'Reilly logo

F# for Quantitative Finance by Johan Astborg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Looking deeper inside data structures

In the previous chapter we introduced some data structures of F# and scratched the surface of their functionality. In this section we will take a deeper look at several data structures and expressions used in many programs.

The following is a list of what will be covered together with a short description to summarize their main characteristics:

  • Record types: Record types are used to represent data and group pieces of data together by combining named values and types.
  • Discriminated unions: Discriminated unions are useful to represent heterogeneous data and support data that can be a set of named cases.
  • Enumerations: Enumerations in F# are almost identical to enumerations in other languages and are used to map labels ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required