Stop using, opt match { case Some(x) => f(x); case None => y } Stop using, http://opt.map (f).getOrElse(y) Use, opt.fold(y)(f) I feel like I'm very late to this party.
-
-
This Tweet is unavailable.
Replying to @mikulskibartosz
I think only the first few times, though... could we have said the same about `map` back when we were familiar with iterating for-loops?
3:15 PM - 5 Apr 2018
from Warsaw, Poland
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.