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
10
11
// Verifies that Thunk cannot be sent across threads.
// Thunk contains Box<dyn FnOnce() -> A> which is !Send.

use fp_library::types::Thunk;

fn main() {
	let thunk = Thunk::new(|| 42);
	std::thread::spawn(move || {
		thunk.evaluate();
	});
}