Skip to content

Kushagra-0801/fn-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A small macro for function composition in rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages