fn-compose

Crates.iofn-compose
lib.rsfn-compose
version0.1.0
sourcesrc
created_at2020-09-15 16:17:46.083786
updated_at2020-09-15 16:17:46.083786
descriptionA small macro for function composition
homepage
repositoryhttps://github.com/Kushagra-0801/fn-compose
max_upload_size
id289068
size2,899
Kushagra Gupta (Kushagra-0801)

documentation

README

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);
Commit count: 2

cargo fmt