Crates.io | fn-compose |
lib.rs | fn-compose |
version | 0.1.0 |
source | src |
created_at | 2020-09-15 16:17:46.083786 |
updated_at | 2020-09-15 16:17:46.083786 |
description | A small macro for function composition |
homepage | |
repository | https://github.com/Kushagra-0801/fn-compose |
max_upload_size | |
id | 289068 |
size | 2,899 |
A small macro for function composition.
use fn_compose::fn_compose;
let res1 = fn_compose!(1 => add_one => double => mul 3, _, 5);
let res2 = mul(3, double(add_one(1)), 5);
assert_eq!(res1, res2);