This still makes an unnecessary copy of the entire array, when you really only need to copy the relevant slice.