3 releases
0.0.4 | Dec 12, 2020 |
---|---|
0.0.2 | Dec 9, 2020 |
0.0.1 | Dec 3, 2020 |
#1453 in Data structures
92 downloads per month
Used in 2 crates
(via chronos-parser-rs)
30KB
981 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 | - | ✓ |