SSSSTD 🐍
The name Vector for a resizeable array of values easily causes confusion with mathematical vectors, snakes are a much better analogy for such a structure.
- A snake occupies a finite continuous region of space
- As a snake outgrows its capacity, it has to re-allocate. Biologists tend to refer to this as shedding skin.
Usage
use Snek;
use macros;
Advanced usage
If have non-ascii-idents enabled in your nightly compiler, you can also do this. A picture speaks a thousand words after all
use Snek;