Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
almostzip
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
almostzip
7y ago
Indeed. However in Scala at least zip ends up giving you a List instead of an Option. for {} yield seems to do the trick scala> val a = Some("A") a: Some[String] = Some(A) scala> val b = Some(1) b: So