Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: