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

Aka

    list(filter(None, tokens))
Or

    list(filter(lambda x: bool(x), tokens))


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

Search: