def METHOD_NAME(self, mask, data_t, data_f):
    out = []
    for m, t, f in zip(cycle(mask), data_t, data_f):
        if m:
            out.append(t)
        else:
            out.append(f)
    return out