Crate idata[][src]

Small tools to work with rust reducing mutability and programming more functional way.

Mutability and sharing is bad.

Viric mutability is bad.

Mutability on large pieces of code is bad.

In Rust, we can have no viric, not shared mutability. Let's reduce to small scopes...

For an introduction and context view, read...

README.md

A very basic example...

   extern crate idata;
   use idata::cont::IVec;

   fn main() {
        let v = vec![1, 2];
        let v = v.ipush(3)
                 .ipush(4);

       assert!(v == vec![1,2,3,4]);
   }

Modules

cont

Module to work with containers

tc

Recursive simulation with TCO

Functions

consume_char

Try getting a char from top of a Chars returning the (char, remaining_chars) if possible