immut_list

Crates.ioimmut_list
lib.rsimmut_list
version0.1.0
sourcesrc
created_at2017-10-21 16:32:30.942121
updated_at2017-10-21 16:32:30.942121
descriptionimmutable persistent list
homepagehttps://gitlab.com/nathanfaucett/rs-immut_list
repositoryhttps://gitlab.com/nathanfaucett/rs-immut_list.git
max_upload_size
id36494
size12,642
Nathan Faucett (nathanfaucett)

documentation

README

immut_list

immutable persistent list

extern crate immut_list;
extern crate data_structure_traits;


use immut_list::ImmutList;
use data_structure_traits::*;


fn main() {
    let mut a = ImmutList::new();

    for i in 0..32 {
        a = a.push(i);
    }

    let mut index = 32;
    for i in &a {
        index -= 1;
        assert_eq!(i, &index);
    }

    println!("{:?}", a);
}
Commit count: 2

cargo fmt