clear method
void
clear()
Zeros length but keeps the order and reverse-index buffers allocated so follow-up inserts can reuse them without realloc. Callers that want the reverse map cleared too must call resetIndexAll separately — this method does not touch it.
Implementation
void clear() {
_len = 0;
_onMutated();
}