vecless 0.3.0

A minimal, Vec-free, singly linked list with Display support and ergonomic APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fs::File;
use std::io::{self, BufRead, BufReader};
use vecless::List;

fn main() -> io::Result<()> {
    let file = File::open("examples/input.txt")?;
    let reader = BufReader::new(file);

    let lines = reader.lines().filter_map(Result::ok);
    let list = List::new().add(lines);

    println!("Contents of input.txt as a list:");
    println!("{}", list);

    Ok(())
}