更新时间:2021-06-10 19:36:39
coverpage
Title Page
Dedication
Packt Upsell
Why subscribe?
Packt.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
An Introduction to Scala 2.13
Technical requirements
Introduction to Scala 2.13
New features of Scala 2.13
Optional parsing for string literals
Products can report the names of their element
Added methods for chaining operations
Automatic Resource Management
The Scala 2.13 Collection Library
IterableOnceOps
IterableOps
WithFilter
IterableFactory
View
Set
Map
SortedMap
HashMap
MultiMap
SeqMap
Seq
IndexedSeq
LinearSeq
Buffers
Scala Collection Contrib library
Summary
Questions
Further reading
Understanding Types in Scala
Understanding types
Ways to create a type
Literal types
Compound (intersection) types
Type constraints
Scala's types hierarchy and special types
Type inference
Path-dependent types
Types – all the way down
Type parameters
Type members
Generalized type constraints
Infix types
Variance
Existential types
Higher kinded types
Type lambdas
Using types to define domain constraints
Phantom types
Self-recursive types
Deep Dive into Functions
Ways to define a function
Function as a method
Local functions
Closures
Partial application and functions
Function literals
Currying
Polymorphism and higher order functions
Polymorphic functions
Higher-order functions
Recursion and trampolining
Recursion
Tail recursion
Trampolining
Object-oriented aspects of functions
Functions are traits
Partial functions
Function object
Extending functions
Getting to Know Implicits and Type Classes
Types of implicits
Implicit conversions