functype 0.1.1

Functional programming library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! 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));
//! ```

pub use functype_core::prelude;
pub use functype_core::*;

pub use functype_io;
pub use functype_io::{Task, IO};