functional-closures 0.4.0

composable pure functions with the signature f(T) -> T
Documentation

Function Closures

This crate allows you to create constant functions, and the identity function and combine them with a couple basic operations like follows

// for graphing this is y = x
let y = Function::default();

// f(x) = 3x
let f = Function::new(3.)*Function::default();

// note that Function implements From::<f64> no matter the underlying type
let f = Function::from(3.)*Function::default();

Development

Development is currently very active and many breaking changes are still to come

writen 9/20/23

docs