- Fixed broken documentation links
Unclaimed project
Are you a maintainer of fpdart? Claim this project to take control of your public changelog and roadmap.
Changelog
Functional programming in Dart and Flutter. All the main functional programming types and patterns fully documented, tested, and with examples.
Improved performance of some iterable based functions in Iterable and Map extension (thanks to @lrhn π)
Added lookupEq and dropRight on Iterable extension
[].lookupEq(Eq.eqInt, 5) // None()
[1, 2, 3, 4].lookupEq(Eq.eqInt, 5) // None()
[1, 2, 3, 4].lookupEq(Eq.eqInt, 3) // Some(3)
[1, 6, 4, 3, 2].lookupEq(Eq.by((n) => n % 3, Eq.eqInt), 0) // Some(6)
[1, 2].dropRigh...
3.0.0 β οΈ (Dart 3οΈβ£)environment:
sdk: ">=3.0.0 <4.0.0"
ReaderTaskEither type
ReaderTaskEither models a complete program using Reader for dependency injection, Task to perform asynchronous computation, and Either to handle errors π―ReaderTask typeEither as sealed class (Dart 3οΈβ£)
Do() constructor used to initialize a Do notation chain/// Without the Do notation
String goShopping() => goToShoppingCenter()
.alt(goToLocalMarket)
.flatMap(...