Hacker News new | ask | show | jobs
by mplanchard 1955 days ago
Aka

    list(filter(None, tokens))
Or

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