def recursive_array_addition(l:list):
    """Sum an array of integers using recursion."""
    if len(l) == 0:
        return 0
    else:
        i = l.pop()
        return i + recursive_array_addition(l)