block by nicerobot 6213be207dd87b2d5e75

map vs flatMap

flatMap.scala

flatten.scala

map.scala