def compressArrays(mask, *arrays):
    """Compress all input arrays using the supplied mask, a.compress(mask), and return them
in the same order as input.
    """
    return [a.compress(mask) for a in arrays]