It’s a shame that flatten
doesn’t exist. It should.
Flatten does exist now.
As before,
s getOrElse None
(in addition to the other answers) will also do the same thing.
It’s a shame that flatten
doesn’t exist. It should.
Flatten does exist now.
As before,
s getOrElse None
(in addition to the other answers) will also do the same thing.