def from_digits(digits):
    """
    Make a number from its digit array (inverse of get_digits)
    """
    n = 0
    multiplier = 1
    for d in reversed(digits):
        n += multiplier * d
        multiplier *= 10

    return n