def end(space, w_arr):
    """ Set the internal pointer of an array to its last element """
    length = w_arr.arraylen()
    if length == 0:
        return space.w_False
    w_arr.current_idx = length - 1
    return w_arr._current(space)