0.1.3 |
|
---|---|
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#157 in #closures
6KB
100 lines
lazy-pipe
Chain closures into a pipeline
Usage
let expected = ((3 + 1) / 2).to_string();
let received = pipe(3)
.map(|x| x + 1)
.map(|x| x / 2)
.map(|x| x.to_string())
.unwrap();
assert_eq!(received, expected);