4 ms·
I guess in Python it would be going from: list(map(lambda x: x**2, [1, 2, 3, 4])) To: list(pmap(lambda x: x**2, [1, 2, 3, 4]))
by dorianm 10y ago
I guess in Python it would be going from:
list(map(lambda x: x**2, [1, 2, 3, 4]))
To:
list(pmap(lambda x: x**2, [1, 2, 3, 4]))
- noobermin 10y agoRight, and neither of those are pythonic. There is no need for a lambda when you have comprehensions. This comment may relate better to your point: I would personally prefer "afor" over "async for", FWIW. One thing I don't feel "async for" is being more explicit over being more verbose. The symmetry with "await foo" is broken though.