• itslilith@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    1 year ago

    It does! it takes a list (or other iterator) and filters out all values that are cast to boolean True. The same could be archived with

    results = list(filter(bool, results))