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
So if I have a sequence of size 2, the only valid indexes are 0 and 1 then I wouldn't be able to insert a new element at all valid places. Insert means insert before, so it should be valid to insert before the end iterator (i.e. length(xs)) and the actual requirement should be:
it must also be true that n <= length(xs)
I haven't fully tested, but the compiler accepts n=length(xs), so for now I'm assuming that only the documentation is outdated.
Thank you for the excellent library.
The text was updated successfully, but these errors were encountered:
Documentation states:
So if I have a sequence of size 2, the only valid indexes are 0 and 1 then I wouldn't be able to insert a new element at all valid places. Insert means insert before, so it should be valid to insert before the end iterator (i.e.
length(xs)
) and the actual requirement should be:I haven't fully tested, but the compiler accepts
n=length(xs)
, so for now I'm assuming that only the documentation is outdated.Thank you for the excellent library.
The text was updated successfully, but these errors were encountered: