Skip to main content

Crate functype

Crate functype 

Source
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§

collections
either
fdo
non_empty_vec
option_ext
prelude
pure
result_ext
try_type
tuple_ext
validated

Macros§

fdo
Scala/Haskell-style do-notation macro for monadic composition.
list
Creates a List from a list of elements.
map
Creates a Map from key-value pairs.
nev
Creates a NonEmptyVec from a list of elements.

Structs§

IO
A lazy, composable IO effect type.

Type Aliases§

Task
Alias for IO<A>.