Records: Lightweight Tuples
Group values without a class.
What Is a Record?
A record is a quick way to bundle a few values together without writing a whole class. Think of it as a tiny, ready-made container. 📦
Why Tuples Matter
Sometimes you just need to group two or three values for a moment. A tuple lets you do that instantly, no boilerplate, no naming a new type.
All lessons in this course
- Records: Lightweight Tuples
- Positional and Named Record Fields
- Destructuring With Patterns
- switch Patterns and Guards