1 unstable release

Uses old Rust 2015

0.1.0 Oct 21, 2017

#111 in #persistent

MIT license

10KB
310 lines

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);
}

Dependencies

~37KB