3 ms·
The only thing wrong with that list comprehension version is those [ ] all(some_predicate_fn(x) for x in lst) Much better than the loop.
by jules 12y ago
The only thing wrong with that list comprehension version is those [ ]
all(some_predicate_fn(x) for x in lst)
Much better than the loop.