You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently ArrayBase::split_at is private, and only ArrayView::split_at is public. However there are situations where you might want to split an owned array. For example in a factory function that generates an Array, you want to move the array into the calling frame, but you also want to split the array into pieces. This is currently not possible.
Can we make ArrayBase::split_at public, or else implement Array::split_at?
The text was updated successfully, but these errors were encountered:
There is no way to split an owned array, unfortunately, there is no private method that does that. It would require allocation and copying by the way, to do that.
Huh okay the compiler told me there was a private implementation of ArrayBase::split_at. Well in that case I guess this is a feature request for an owned array to be able to split, with copying if necessary.
Currently
ArrayBase::split_at
is private, and onlyArrayView::split_at
is public. However there are situations where you might want to split an owned array. For example in a factory function that generates anArray
, you want to move the array into the calling frame, but you also want to split the array into pieces. This is currently not possible.Can we make
ArrayBase::split_at
public, or else implementArray::split_at
?The text was updated successfully, but these errors were encountered: