def compress(items, flags):
return it.compress(items, flags)<EOL>
Selects items where the corresponding value in flags is True
This is similar to np.compress and it.compress

Args:
    items (Iterable): a sequence to select items from

    flags (Iterable): corresponding sequence of bools

Returns:
    Iterable: a subset of masked items

Example:
    >>> import ubelt as ub
    >>> items = [1, 2, 3, 4, 5]
    >>> flags = [False, True, True, False, True]
    >>> list(ub.compress(items, flags))
    [2, 3, 5]