iof 0.5.0

Read from and write data to console or file in simple formats.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    use iof::show;

    // This will write "42\n" to the standard output.
    show!(42);
    // This will write "Hello, World!\n" to the standard output.
    show!("Hello, World!");
    // This will write "1 2 3 4\n" to the standard output.
    show!([1, 2, 3, 4]);
    // This will write "1 2\n3 4\n" to the standard output.
    show!([[1, 2], [3, 4]]);
    // This will write "1, 2\n3, 4\n" to the standard output.
    show!([[1, 2], [3, 4]], sep = ["\n", ", "]);
    // This will write "1, 2\n3, 4!" to the standard output.
    show!([[1, 2], [3, 4]], sep = ["\n", ", "], end = "!\n");
    // This will write "1,2;3,4!" to the standard output.
    show!([[1, 2], [3, 4]], sep = [';', ','], end = "!\n");
}