Expand description
Functional Libary for Rust
This is still a work in progess..
Functor
use funlib::Functor;
let s = Some(3).fmap(|&a| a * 2); // this will produce Some(6)
Monad
use funlib::Monad;
let s = Some(3).bind(|&a| Some(a * 2)); // this will produce Some(6)
Modules§
- Foldable
- Foldable mod containing the foldable type classes
- applicative
- Applicative implementations and tests
- foldable
- Foldable implementations and tests
- functor
- Functor implementations and tests
- monad
- Monad implementations and tests
- monoid
- Monoid implementations and tests
- semigroup
- Semigroup implementations and tests