from typing import Iterable


def _list_of_digits_to_number(list_of_digits: Iterable[int]) -> int:
    """Convert a list of digits to a number."""
    return int(''.join([str(digit) for digit in list_of_digits]))