A record is a collection of fields (which can be of different types) that belong together. It is a type of product type.
- Syntax: how to define a record.
- When to use records: are there alternatives over using records? When is using a record the preferred way?
- Mutability: are records mutable or immutable? If immutable, how to return a modified version of the record?
In this exercise you're a big sports fan and you've just discovered a passion for NBA basketball. The reference implementation (F#) teaches:
- Defining records
- Creating records
- Updating records
- Deconstructing records
- Pattern matching on records
- Structural equality for records
| Track | Exercise | Changes |
|---|---|---|
| F# | records | None |