functype: Scala-inspired functional programming library for Rust.
This is the umbrella crate that re-exports all functype functionality.
Quick Start
use *;
let either: = right;
let doubled = either.map;
assert_eq!;
functype: Scala-inspired functional programming library for Rust.
This is the umbrella crate that re-exports all functype functionality.
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));