Level 2 — Intermediate
These lessons cover classes, case classes, objects, traits, enums and algebraic data types, pattern matching, generics, higher-order functions, for-comprehensions, error handling with Option, Try, and Either, extension methods, files, sbt and Scala CLI, testing, and Java interoperability. Recommended: the Level 1 lessons, especially expressions, methods, collections, and Option.
Lessons in this module
- 1. Classes 5 min
- 2. Case Classes 5 min
- 3. Objects and Companion Objects 5 min
- 4. Traits 6 min
- 5. Enums and Algebraic Data Types 6 min
- 6. Pattern Matching in Depth 6 min
- 7. Generics 5 min
- 8. Higher-Order Functions 5 min
- 9. For-Comprehensions 5 min
- 10. Error Handling: Exceptions and Try 5 min
- 11. Either and Validation 6 min
- 12. Extension Methods 4 min
- 13. Immutability in Practice 5 min
- 14. Strings and Regular Expressions 5 min
- 15. Working with Files 5 min
- 16. Packages and Imports 4 min
- 17. Building with sbt and Scala CLI 6 min
- 18. Testing with MUnit 5 min
- 19. Lazy Values, Views, and LazyList 4 min
- 20. Java Interoperability 5 min