The same is true with flatmap.
Mike Ferguson

You’re right, I also tried using flatMap and was a little surprised that it works like that.

I should probably mention flatMap in the article too.

Like what you read? Give Paulina Sadowska a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.