def base_convert_to_ten(base: int, digits: list[int]) -> int:
    """
    Examples:
        >>> digits = [0, 1, 1]
        >>> base_convert_to_ten(2, digits)
        6
    """
    assert abs(base) >= 2
    p = 1
    n = 0
    for d in digits:
        n += d * p
        p *= base
    return n