Crate fp_library

Crate fp_library 

Source
Expand description

A functional programming library for Rust featuring your favourite higher-kinded types and type classes.

§Features

  • rayon: Enables parallel folding operations (ParFoldable) and parallel execution support for VecBrand using the rayon library.

Modules§

brands
Higher-kinded representations of types.
classes
Functional programming type classes.
functions
Generic, helper free functions and re-exports of free versions of type class functions.
kinds
Simulates higher-kinded types using type-level defunctionalisation based on Yallop and White’s Lightweight higher-kinded polymorphism.
types
Concrete data types, their corresponding implementations and type aliases.

Macros§

Apply
Applies a brand to type arguments.
Kind
Generates the name of a Kind trait based on its signature.
def_kind
Defines a new Kind trait.
impl_kind
Implements a Kind trait for a brand.