#functional #haskell #import #little #root #everywhere #methods

yanked functils

Functions to make Rust more functional

Uses old Rust 2015

0.0.2 Sep 17, 2016
0.0.1 Sep 9, 2016

#11 in #everywhere

MIT license

9KB
156 lines

Making Rust a little more functional.

#How to use:

Put this in your Cargo.toml file:

[dependencies]
functils = "0.0.1"

Then import with:

extern crate functils
use functils::*

It's recommended that the above code block be put into your crate root so you can use the methods everywhere without needing to import it in each file.


lib.rs:

Rust has really powerful generics that can be used to make it more functional in terms of it's composition. Included in this crate are helper functions often times used in languages like Haskell.

Dependencies

~22KB