Arseny Hofman
aruseni.bsky.social
Arseny Hofman
@aruseni.bsky.social
Software developer, founder
Hi :)
You’ve got great taste in music :)
Do you like The Kooks?
November 22, 2024 at 6:35 PM
An interesting thing is that instead of this
any([some_func(x) for x in [1, 2, 3]])
You can also do this
any(some_func(x) for x in [1, 2, 3])
See what I did here? Instead of a list comprehension we’re using a generator expression, and the code becomes more efficient :)
November 22, 2024 at 6:29 PM