Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pansa2
on Jan 21, 2021
|
parent
|
context
|
favorite
| on:
Toolz: A functional standard library for Python
In fact, no statements at all - just a single expression.
Iwan-Zotow
on Jan 22, 2021
[–]
well, you could pack a lot of other expressions into that expression, especially with 3.8/3.9, e.g.
x,y = 1,2
q = list(map(lambda t: (tx := t*x, ty := t*y, tx+ty)[-1], [1, 2, 3]))
pansa2
on Jan 22, 2021
|
parent
[–]
Walrus operator: not even once.
Iwan-Zotow
on Jan 23, 2021
|
root
|
parent
[–]
walrus, actually, being an expression, it's a perfect fit for lambdas
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: