pipe-op 0.0.1

The elixir pipe operator as a macro in Rust
Documentation
1
2
3
4
5
6
7
8
9
use pipe_op::pipe;

fn add(a: usize, b: usize) -> usize {
    a + b
}

fn main() {
    assert_eq!(pipe!(1, add(10), add(10), { |x| x + 1 }()), 22)
}