项目作者: Kushagra-0801

项目描述 :
A small macro for function composition in rust
高级语言: Rust
项目地址: git://github.com/Kushagra-0801/fn-compose.git
创建时间: 2020-09-15T16:11:54Z
项目社区:https://github.com/Kushagra-0801/fn-compose

开源协议:

下载


fn-compose

A small macro for function composition.

Usage

  1. use fn_compose::fn_compose;
  2. let res1 = fn_compose!(1 => add_one => double => mul 3, _, 5);
  3. let res2 = mul(3, double(add_one(1)), 5);
  4. assert_eq!(res1, res2);