Expand description
functype: Scala-inspired functional programming library for Rust.
This is the umbrella crate that re-exports all functype functionality.
§Quick Start
use functype::prelude::*;
let either: Either<&str, i32> = Either::right(42);
let doubled = either.map(|x| x * 2);
assert_eq!(doubled.right_value(), Some(&84));Re-exports§
pub use functype_io;
Modules§
Macros§
- fdo
- Scala/Haskell-style do-notation macro for monadic composition.
- list
- Creates a
Listfrom a list of elements. - map
- Creates a
Mapfrom key-value pairs. - nev
- Creates a
NonEmptyVecfrom a list of elements.
Structs§
- IO
- A lazy, composable IO effect type.
Type Aliases§
- Task
- Alias for
IO<A>.