5 releases
0.0.5 | Dec 12, 2020 |
---|---|
0.0.4 | Dec 12, 2020 |
0.0.3 | Dec 9, 2020 |
0.0.2 | Dec 8, 2020 |
0.0.1 | Dec 3, 2020 |
#1818 in Rust patterns
221 downloads per month
Used in 6 crates
(3 directly)
16KB
555 lines
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 | - | ✓ |