The Artima Developer Community


Errata for Programming in Scala
Chapter 19: Type Parameterization
Return to errata index.

Page 404 (PDF page 433):
Last paragraph:
"... a sort function that takes advantage OF the Ordered trait."

FIXED
Page 403 (PDF page 441):
"Because the result type of a Function1 is defined as covariant, the
inheritance relationship of the two result types, shown at the right of
the diagram, is in the same direction as that of the two [function types]
shown in the center. By contrast, because the parameter type of a
Function1 is defined as contravariant, the inheritance relationship of
the two parameter types, shown at the left of the diagram, is in the
opposite direction as that of the two [function types]."

Page number: Book type: Paperback book PDF eBook
Book version: (Or build date. Found on back of title page.)
Your feedback:
Your name: (optional)
Your email address: (optional) (will not be published)

Copyright © 2021 Artima, Inc. All rights reserved.