def delta_decode(in_array):
if len(in_array) == <NUM_LIT:0>:<EOL><INDENT>return []<EOL><DEDENT>this_ans = in_array[<NUM_LIT:0>]<EOL>out_array = [this_ans]<EOL>for i in range(<NUM_LIT:1>, len(in_array)):<EOL><INDENT>this_ans += in_array[i]<EOL>out_array.append(this_ans)<EOL><DEDENT>return out_array<EOL>
A function to delta decode an int array.

    :param in_array: the input array of integers
    :return the decoded array