def binary_mask_to_str(m):
    """Given an iterable or list of 1s and 0s representing a mask, this returns a string
    mask with '+'s and '-'s."""
    m = list(map(lambda x: "-" if x == 0 else "+", m))
    return "".join(m)