Errata

Scala Cookbook

Errata for Scala Cookbook, Second Edition

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed, PDF,
Page 380
The first Map example at the top of the page

This is not an error, but I want to note that you can also use this tuple syntax, in addition to the tuple example that’s shown:


m.foreach(t => println(s"${t(0)} -> ${t(1)}"))

Alvin Alexander
 
Sep 06, 2021 
PDF,
Page 624-638
Multiple pages

In the Scala.js recipes in Chapter 21, where the fastLinkJS command is shown, the correct command to show is fastOptJS. If you use fastOptJS, you’ll get the results shown in the book. (The fastLinkJS is a newer command, and produces slightly different results.)

Alvin Alexander
 
Sep 05, 2021