Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
deathvyp3r
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
deathvyp3r
4y ago
you can do this in c++ as well with a lambda const value = [&]() { if (a) { return true; } return switch (b) { case 1: return false; default: return undefinied; } }();