sssstd 0.1.2

🐍 - A better analogy for resizeable arrays
Documentation
  • Coverage
  • 0%
    0 out of 5 items documented0 out of 0 items with examples
  • Size
  • Source code size: 2.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.83 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • TheZoq2/sssstd
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • TheZoq2

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 sssstd::snek::Snek;
#[macro_use]
use sssstd::macros;

fn main() {
    let snek = Snek::<i32>::new();
    snek.push(1);
    println!("{}", snek);

    let snek2 = snek!(1,2,3 as i32);
    println!("{}", snek2);
}

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 sssstd::snek::Snek;

fn main() {
    let 🐍 = Snek::<i32>::new();
    🐍.push(1);
    println!("{}", snek);
}