underscoreio/essential-scala

Mistake in text (C.5.43)

Closed this issue · 1 comments

C.5.43 Solution to: Random Words Part 2

We’re now using the full power of flatMap to make decisions in our code that are dependent on what has happened before.

There is no flatMap usage in the solution code.

The solution does use flatMap and map but it does so via a for comprehension. I've clarified this in the solution text.