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
When insert!(collection::Vector, index, item) is passed index > length(collection)+1, insert! goes ahead and inserts the item, and the elements in between the old end of the vector and index are uninitialized memory. Personally I think it would be safer to throw a BoundsError for this case, but if we leave things as is, we should document this.
The text was updated successfully, but these errors were encountered:
When
insert!(collection::Vector, index, item)
is passedindex
>length(collection)+1
,insert!
goes ahead and inserts the item, and the elements in between the old end of the vector andindex
are uninitialized memory. Personally I think it would be safer to throw a BoundsError for this case, but if we leave things as is, we should document this.The text was updated successfully, but these errors were encountered: