I put my solutions here mainly for my own reference. Don't mind if you take a look or give feedback, though.
For each chapter's exercises, I try to use only language constructs covered so far in the book.
- Chapter 1: THE BASICS (A1)
- skipped
- Chapter 2: CONTROL STRUCTURES AND FUNCTIONS (A1)
- skipped
- Chapter 3: WORKING WITH ARRAYS (A1)
- Chapter 4: MAPS AND TUPLES (A1)
- Chapter 5: CLASSES (A1)
- Chapter 6: OBJECTS (A1)
- Chapter 7: PACKAGES AND IMPORTS (A1)
- skipped
- Chapter 8: INHERITANCE (A1)
- Chapter 9: FILES AND REGULAR EXPRESSIONS (A1)
- skipped
- Chapter 10: TRAITS (L1)
- Chapter 11: OPERATORS (L1)
- Chapter 12: HIGHER-ORDER FUNCTIONS (L1)
- Chapter 13: COLLECTIONS (A2)
- Chapter 14: PATTERN MATCHING AND CASE CLASSES (A2)
- Chapter 15: ANNOTATIONS (A2)
- Chapter 16: XML PROCESSING (A2)
- skipped
- Chapter 17: FUTURES (A2)
- Chapter 18: TYPE PARAMETERS (L2)
- TODO
- Chapter 19: ADVANCED TYPES (L2)
- TODO
- Chapter 20: PARSING (A3)
- TODO
- Chapter 21 IMPLICITS (L3):
- TODO
sbt test
Solutions for the 1st edition: