| Crates.io | functional-closures |
| lib.rs | functional-closures |
| version | 0.4.0 |
| created_at | 2023-09-20 03:24:09.377603+00 |
| updated_at | 2023-09-24 02:51:33.289705+00 |
| description | composable pure functions with the signature f(T) -> T |
| homepage | |
| repository | |
| max_upload_size | |
| id | 977773 |
| size | 10,353 |
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 is currently very active and many breaking changes are still to come
writen 9/20/23