Slutsåld
Contents ix
List of Figures xix
List of Tables xxi
List of Listings xxii
Foreword xxix
Acknowledgements xxxi
Introduction xxxiii
1. A Scalable Language 3
2. First Steps in Scala 23
3. Next Steps in Scala 37
4. Classes and Objects 59
5. Basic Types and Operations 73
6. Functional Objects 95
7. Built-in Control Structures 115
8. Functions and Closures 139
9. Control Abstraction 161
10. Composition and Inheritance 177
11. Scala's Hierarchy 205
12. Traits 213
13. Packages and Imports 233
14. Assertions and Unit Testing 249
15. Case Classes and Pattern Matching 263
16. Working with Lists 297
17. Collections 329
18. Stateful Objects 357
19. Type Parameterisation 381
20. Abstract Members 407
21. Implicit Conversions and Parameters 437
22. Implementing Lists 459
23. For Expressions Revisited 473
24. Extractors 489
25. Annotations 505
26. Working with XML 513
27. Modular Programming Using Objects 527
28. Object Equality 543
29. Combining Scala and Java 569
30. Actors and Concurrency 583
31. Combinator Parsing 619
32. GUI Programming 649
33. The SCells Spreadsheet 661
A. Scala scripts on Unix and Windows 687
Glossary 689
Bibliography 705
About the Authors 709
Index 711