scalawithcats / scala-with-cats

Source code for Scala with Cats
http://underscore.io/books/scala-with-cats
390 stars 129 forks source link

fig 10.5: is the flatMap type chart correct? #172

Open marko-asplund opened 4 years ago

marko-asplund commented 4 years ago

Type A is represented with a circle and B with a star. In the flatMap parameter chart these seem to have switched.

arosien commented 4 years ago

The diagram does have a A => F[A] part, which doesn't match the referenced code snippet. But the second (A => F[B]) and third (B => F[C]), do match the A = circle, B = star convention.