4 ms·
This feels luke a strawman example. I feel like list comprehension results in a much more readable example here. I think, at least. > all(func3(a) for h,w in z
by Phemist 6y ago
This feels luke a strawman example. I feel like list comprehension results in a much more readable example here. I think, at least.
> all(func3(a) for h,w in zip(a,b) for a in func1(h,w) if func2(a))
- lauriat 6y agoFair enough. Readability is subjective but I understand the sentiment. Constructing list comprehensions of such long chained expressions can be rather tedious and error prone, though (as your example shows).