Posted on c/ElrondDevelopers 3 Die294003185c/ElrondDevelopers 2 years ago When we use a ManagedVec, we can't get the index 0 cause it's used to store the lenght? Comment 3 Comments And167100369 2years ago ManagedVec starts from 0, just like regular Vec ian8639380436 2years ago No. That's only for VecMapper mwf81318617 2years ago I assume it's because 0 values are a bit unintuitive to work with as they encode as zero bytes values. Therefore elrond decided to use 1 based indices :)
ManagedVec starts from 0, just like regular Vec
No. That's only for VecMapper
I assume it's because 0 values are a bit unintuitive to work with as they encode as zero bytes values. Therefore elrond decided to use 1 based indices :)