When I try to update a sub array of a vector with the lagged one, the result is a bit strange, is it the expected behavior?
MWE:
using ShiftedArrays
x = [1,2,3,4,missing];
y = lag(view(x, 2:3));
x[2:3] = y;
x
5-element Vector{Union{Missing, Int64}}:
1
missing
missing
4
missing
x[2:3] are both missing.