Table of Contents
Acknowledgments |
Introduction |
Programming Styles in Scala |
Scala and Other Languages |
Who Is This Book For? |
What’s in This Book? |
Scala Version Used in This Book |
Online Resources |
1. | Exploring Scala |
Scala Features |
More with Less |
Functional Programming |
2. | Taking Scala for a Ride |
Using the REPL |
Scala on the Command Line |
Running Scala Code as a Stand-alone Script |
Compiling Scala |
3. | From Java to Scala |
Scala as Concise Java |
Scala Classes for Java Primitives |
Tuples and Multiple Assignments |
Flexible Parameters and Arguments |
Implicit Parameters |
Strings and Multiline Raw Strings |
String Interpolation |
Sensible Defaults |
Operator Overloading |
Scala Surprises for the Java Eyes |
Default Access Modifier |
4. | Working with Objects |
Creating and Using Classes ... |
Get Pragmatic Scala now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.