Crates.io | pipette |
lib.rs | pipette |
version | 0.1.0 |
source | src |
created_at | 2021-09-14 23:09:38.174507 |
updated_at | 2021-09-14 23:09:38.174507 |
description | Polymorphic function pipelines without traits or macros |
homepage | |
repository | |
max_upload_size | |
id | 451519 |
size | 7,643 |
A small crate for using pipes in Rust.
let input = 1;
let output = pipette::pipe((
input
|a| a * 2,
|a| a * 3,
|a| a * 4,
|a| a * 5,
|a| a * 6,
|a| a * 7,
|a| a * 8,
));
assert_eq!(output, 40_320);
Pipette is unique:
Supports polymorphic pipeline sizes
Integrates well with IDE
Does not require macros or custom traits
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Pipette by you, shall be licensed as MIT, without any additional terms or conditions.