I want to replace the previous value with the new one. I'm not sure which one is more efficient: 
```
array.clone
```
 or 
```
for (i <- 0 until array1.size) array1(i) = array2(i)
array1
```