small medium large xlarge

Errata for Functional Programming Patterns in Scala and Clojure

 

The latest version of the book is P2.0, released over 1 year ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P2.0 (10-Mar-15)
#78237
PDF page: 31

5 lines from bottom, the text:
"return an instance of HttpResult"
Should read:
"return an instance of HttpRequest"--Mark Bush

  • Reported in: P2.0 (10-Mar-15)
#78238
PDF page: 41
The statement "In functional languages, functions are higher-order: they can be returned from functions and used as arguments to others" is incorrect....more...
  • Reported in: P1.0 (12-Aug-14)
#77204
PDF page: 49
I may be wrong, but it seems that the final response on this page should be: <h1>Friendly Greetings:<h2>Mike</h2>,<h2>Joe</h2>,<h2>John></h2>,<h2>...more...
  • Reported in: P2.0 (10-Sep-14)
#77304
PDF page: 64
At the beginning of the "Sample Code: Immutable Data" section, the sentence "Then we’ll take a look at three ways of replacing them in Clojure: regula...more...
  • Reported in: P1.0 (01-Jan-16)
#79509
Paper page: 81
The lambda_bar_and_grille.clj code sample should use the doseq macro instead of for to print the greetings. This is explained in the paragraph above t...more...
  • Reported in: P2.0 (10-Mar-15)
#78239
PDF page: 85

Figure 5 is referring to the "validator" examples from the Strategy Pattern section instead of the grading examples.--Mark Bush

  • Reported in: P2.0 (11-Mar-15)
#78242
PDF page: 138

2 lines from the bottom, "tailRecursive()" should be "sumRecursive()".--Mark Bush

  • Reported in: P2.0 (11-Mar-15)
#78243
PDF page: 141

In the definition of the Person case class, the properties are given names which are plural. Presumably, these should be in the singular?--Mark Bush

  • Reported in: P2.0 (11-Mar-15)
#78244
PDF page: 142
In the paragraph starting "One closing note on the syntax" in the middle of the page, it suggests the "method" signature and the "function" signature ...more...
  • Reported in: P2.0 (11-Mar-15)
#78245
PDF page: 167
3rd paragraph from the bottom, if we are creating "dead?" then we would want to cal "alive?" and negate the result, not call "dead?" (which we are cre...more...
  • Reported in: P2.0 (11-Mar-15)
#78246
PDF page: 168
The paragraph below the definition of the "discount()" function refers to a "discountedPrice()" function which should refer to "discount()".--Mark Bus...more...
  • Reported in: P2.0 (11-Mar-15)
#78247
PDF page: 169

On line 4, "discountedPrice" should be "discount".--Mark Bush

  • Reported in: P2.0 (12-Mar-15)
#78248
PDF page: 187

First paragraph of "In Scala" section, "Scala's" should be "Scala".--Mark Bush

  • Reported in: P2.0 (12-Mar-15)
#78249
PDF page: 188

The first paragraph should end with "it" instead of "here".--Mark Bush