Effective Haskell: typo the/they (page 69)

There’s a small typo in ch2 (B9.0), half way through the section Destructuring Values With Pattern Matching in the sentence:

As an example, try copying in the function below that will accept a pair and replace the first or second elements if the match some special case, and otherwise will return the original pair.

It should read “if they match” I think.

1 Like