Y
Hacker News
new
|
ask
|
show
|
jobs
by
ashleney
929 days ago
pretty sure the point is that it's supposed to be in one line
2 comments
xoranth
929 days ago
It's supposed to be a single expression. You can write multiple lines by encasing the expression with parentheses.
link
bagels
929 days ago
Thanks, not sure if if it's doable without walrus operator, which I've not had the occasion for previously.
link
082349872349872
929 days ago
Possible w/out walrus
(but —due to walrus' rather expansive notions of scope— the sol'ns using it
are
shorter)
link