Is there a way to construct a view into an array that skips a single element?
For example, to view v except the element at index p, I can do sub(v, [1:p-1;p+1:length(A)]). However, allocating the array with indices is a bottleneck in my code. Is there a way or trick to get rid of it? I’m using this in a recursive function, so there will be subsequent views of views of views, etcetera, and I can’t easily refactor it to be a (nested) loop instead (because I don’t want to hand-code 20 nested loops…) // T
