1 unstable release
0.1.0 | Sep 15, 2020 |
---|
#17 in #fp
Used in fn-macros
3KB
fn-compose
A small macro for function composition.
Usage
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);