More functions will come as I will need them.
Cargo.toml
toml
[dependencies]
rustkell = "0.2"
main.rs ```rust extern crate rustkell;
use rustkell::DataList; use std::iter::Iterator;
fn main() {
let v = vec![1,2,3,4];
for t in v.tails() {
println!("{:?}", t);
}
}
Output:
shell
[1, 2, 3, 4]
[2, 3, 4]
[3, 4]
[4]
[]
```
Licensed under the MIT license, see LICENSE