How realize the method of array that every time I will invoke it the method will give me last resulted + new changes. For example, I need to invoke method and get array with &qu