How to iterate over PersistentVector

This page in NEAR docs explains how all of the collections work and their features

https://docs.near.org/docs/concepts/data-storage

enter image description here

With PersistentVector you can

  • use length as a bound on a loop
  • use pop (or its alias popBack) to move incrementally

In general, all of these collections are just wrappers for the key-value store which means you can write your own.

If you can imagine a missing data structure, we're almost certainly happy to fund you building one. Check out https://near.university/teach for opportunities to contribute through grants, fellowships and more