def delta_encode(in_array):
if(len(in_array)==<NUM_LIT:0>):<EOL><INDENT>return []<EOL><DEDENT>curr_ans = in_array[<NUM_LIT:0>]<EOL>out_array = [curr_ans]<EOL>for in_int in in_array[<NUM_LIT:1>:]:<EOL><INDENT>out_array.append(in_int-curr_ans)<EOL>curr_ans = in_int<EOL><DEDENT>return out_array<EOL>
A function to delta decode an int array.

    :param in_array: the inut array to be delta encoded
    :return the encoded integer array