1 unstable release

0.1.0 Sep 15, 2020

#2433 in Rust patterns


Used in fn-macros

MIT license

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);

No runtime deps