The Artima Developer Community


Errata for Programming in Scala, 4th Edition
Chapter 25: The Architecture of Scala Collections
Return to errata index.

Page 587 (PDF page 625):
First line of subtractOne function, the last prev statement is redundant,
because the last statement of the function returns "this". Possibly, the
"else" block needs braces. I haven't worked out the code yet.
---
I found some other issues also, and made a TODO to fix in 5ed Advanced.
Tnx for reporting.

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.