• itslilith
    link
    fedilink
    arrow-up
    12
    ·
    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))