
Learning Scala
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Who This Book Is For
- Why Write "Learning Scala"?
- Why Learn Scala (or, Why Should You Read "Learning Scala")?
- Reason 1-Your Code Will Be Better
- Reason 2-You'll Be a Better Engineer
- Reason 3-You'll Be a Happier Engineer
- Why Learning Scala May Not Be for You
- About the Syntax Notation in This Book
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Part I. Core Scala
- Chapter 1. Getting Started with the Scalable Language
- Installing Scala
- Using the Scala REPL
- Summary
- Exercises
- Chapter 2. Working with Data: Literals, Values, Variables, and Types
- Values
- Variables
- Naming
- Types
- Numeric Data Types
- Strings
- An Overview of Scala Types
- Tuples
- Summary
- Exercises
- Chapter 3. Expressions and Conditionals
- Expressions
- Defining Values and Variables with Expressions
- Expression Blocks
- Statements
- If..Else Expression Blocks
- If Expressions
- If-Else Expressions
- Match Expressions
- Matching with Wildcard Patterns
- Matching with Pattern Guards
- Matching Types with Pattern Variables
- Loops
- Iterator Guards
- Nested Iterators
- Value Binding
- While and Do/While Loops
- Summary
- Exercises
- Chapter 4. Functions
- Procedures
- Functions with Empty Parentheses
- Function Invocation with Expression Blocks
- Recursive Functions
- Nested Functions
- Calling Functions with Named Parameters
- Parameters with Default Values
- Vararg Parameters
- Parameter Groups
- Type Parameters
- Methods and Operators
- Writing Readable Functions
- Summary
- Exercises
- Chapter 5. First-Class Functions
- Function Types and Values
- Higher-Order Functions
- Function Literals
- Placeholder Syntax
- Partially Applied Functions and Currying
- By-Name Parameters
- Partial Functions
- Invoking Higher-Order Functions with Function Literal Blocks
- Summary
- Exercises
- Chapter 6. Common Collections
- Lists, Sets, and Maps
- What's in a List?
- The Cons Operator
- List Arithmetic
- Mapping Lists
- Reducing Lists
- Converting Collections
- Java and Scala Collection Compatibility
- Pattern Matching with Collections
- Summary
- Exercises
- Chapter 7. More Collections
- Mutable Collections
- Creating New Mutable Collections
- Creating Mutable Collections from Immutable Ones
- Using Collection Builders
- Arrays
- Seq and Sequences
- Streams
- Monadic Collections
- Option Collections
- Try Collections
- Future Collections
- Summary
- Exercises
- Part II. Object-Oriented Scala
- Chapter 8. Classes
- Defining Classes
- More Class Types
- Abstract Classes
- Anonymous Classes
- More Field and Method Types
- Overloaded Methods
- Apply Methods
- Lazy Values
- Packaging
- Accessing Packaged Classes
- Packaging Syntax
- Privacy Controls
- Privacy Access Modifiers
- Final and Sealed Classes
- Summary
- Exercises
- Chapter 9. Objects, Case Classes, and Traits
- Objects
- Apply Methods and Companion Objects
- Command-Line Applications with Objects
- Case Classes
- Traits
- Self Types
- Instantiation with Traits
- Importing Instance Members
- Summary
- Break-Configuring Your First Scala Project
- Exercises
- Chapter 10. Advanced Typing
- Tuple and Function Value Classes
- Implicit Parameters
- Implicit Classes
- Types
- Type Aliases
- Abstract Types
- Bounded Types
- Type Variance
- Package Objects
- Summary
- Questions
- Appendix A. Reserved Words
- Index
- About the Author
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.