The concept in which a value cannot be changed after having been created. The values are sometimes also referred to as constant or read-only values.
- Explain what immutability is Short explanation of what immutability is, including some of its benefits.
- How can things be made immutable? Are there special keywords? Restrictions?
- Is immutability the default? Are things mutable or immutable by default?
This exercise deals with cooking a lasagna dish in the oven. The reference implementation (F#) teaches:
- What immutability is and some of its benefits
- How to define an immutable value
Track | Exercise | Changes |
---|---|---|
F# | basics | None |