fp-library 0.17.0

A functional programming library for Rust featuring your favourite higher-kinded types and type classes.
Documentation
1
2
3
4
5
6
7
8
9
// Verifies that double references (&&T) are not supported by
// FunctorDispatch's Ref impl. The Ref impl matches &Brand::Of<A>,
// not &&Brand::Of<A>.

use fp_library::functions::map;

fn main() {
	let _ = map(|x: &i32| *x + 1, &&Some(5));
}