Programming in Scala, Second EditionA comprehensive step-by-step GuideBy Martin Odersky, Lex Spoon, and Bill Venners Publisher: artima Released: December 13, 2010 Pages: 883 |
Introduction xlii
- A Scalable Language 50
- First Steps in Scala 69
- Next Steps in Scala 82
- Classes and Objects 104
- Basic Types and Operations 118
- Functional Objects 140
- Built-in Control Structures 160
- Functions and Closures 185
- Control Abstraction 208
- Composition and Inheritance 223
- Scala's Hierarchy 251
- Traits 259
- Packages and Imports 278
- Assertions and Unit Testing 296
- Case Classes and Pattern Matching 310
- Working with Lists 345
- Collections 378
- Stateful Objects 400
- Type Parameterization 423
- Abstract Members 448
- Implicit Conversions and Parameters 480
- Implementing Lists 504
- For Expressions Revisited 517
- The Scala Collections API 534
- The Architecture of Scala Collections 610
- Extractors 634
- Annotations 650
- Working with XML 658
- Modular Programming Using Objects 672
- Object Equality 687
- Combining Scala and Java 713
- Actors and Concurrency 726
- Combinator Parsing 762
- GUI Programming 791
- The SCells Spreadsheet 803
A. Scala scripts on Unix and Windows 828
Glossary 829
Bibliography 845
About the Authors 848
Index 849