r/scala • • Jun 26 '24

When you use map instead of flatMap

Post image
178 Upvotes

5 comments sorted by

8

u/Zingrevenue Jun 26 '24

I can totally relate. Unpacking nested chains is a nightmare 😂

4

u/naftoligug Jun 26 '24

Is this an ad for Kyo?

1

u/fwbrasil Kyo Jun 26 '24

haha I thought the same

2

u/HereIsThereIsHere Jun 28 '24

Shouldn't it be product instead of plus?

1

u/nariver1 Jun 28 '24

I wish I can understand this