Some questions about the behavior of the new CDT list

I tried the new feature of CDT list recently with golang client, and I am a little confused about the behaviour of the ListInsertOp, ListSetOp. When the index parameter exceeds the current list size, some nil values are filled into the list. Is it designed to work as this?

If it is, then how to explain the behaviour of the ListGetOp with index=0? (which will return the whole list)

1 Like