rust-fp
rust-fp is a library for functional programming in Rust.
Install
[dependencies]
rust-fp-categories = "0.0.1"
rust-fp-pfds = "0.0.1"
Type-classes for categories
| type-class |
j5ik2o/rust-fp |
JasonShin/fp-core.rs |
kitfre/Kinder |
14427/hkt.rs |
aoprisan/func |
| Functor |
✓ |
✓ |
✓ |
✓ |
- |
| Pure |
✓ |
✓ |
- |
- |
- |
| Apply |
✓ |
✓ |
- |
- |
- |
| Applicativie(Pure+Apply) |
✓ |
✓ |
✓ |
✓ |
- |
| Bind |
✓ |
✓ |
- |
- |
- |
| Monad(Applicative+Bind) |
✓ |
✓ |
✓ |
✓ |
- |
| Empty |
✓ |
✓ |
- |
- |
- |
| Semigroup |
✓ |
✓ |
- |
- |
- |
| Monoid(Empty+Semigroup) |
✓ |
✓ |
✓ |
✓ |
- |
| Foldable |
✓ |
✓ |
✓ |
- |
- |
| Show |
- |
- |
- |
- |
✓ |
| HList |
- |
- |
- |
- |
✓ |
| TailRec |
- |
- |
- |
- |
✓ |
Purely functional data structures
| data name |
j5ik2o/rust-fp |
aoprisan/func |
| Stack |
✓ |
- |
| Set |
✓ |
- |
| Lazy |
- |
✓ |
| IO |
- |
✓ |
| Free |
- |
✓ |
| Computation |
- |
✓ |