dartz_extensions 0.1.0 copy "dartz_extensions: ^0.1.0" to clipboard
dartz_extensions: ^0.1.0 copied to clipboard

Extensions for the dartz package.

dartz_extensions #

A small companion package for dartz that extends Either with additional functional utilities.


Motivation #

dartz_plus was created to extend the capabilities of dartz in a clean, idiomatic way, providing common functional combinators that are missing from the core library. This helps make working with Either more expressive and concise.


Features #

Zip combinators #

  • zip – Combine two Either values into a Tuple2 of their Right values, returns Right
  • zipLeft – Combine two Either values into a Tuple2 of their Left values, returns Left

Side-effect combinators #

  • tap – Perform a side effect function on the Right value and return the original Either.
  • tapLeft – Perform a side effect on the Left value and return the original Either.
  • tapBoth – Perform a side effect on both values and return the original Either.

Left-side mapping #

  • leftFlatMap – FlatMap operation on the Left side of an Either.

Contributing #

Contributions of any kind are welcome!

Whether it’s:

  • Bug reports
  • Feature suggestions
  • Pull requests

Feel free to open an issue or submit a pull request — all help is appreciated.

2
likes
140
points
118
downloads

Publisher

unverified uploader

Weekly Downloads

Extensions for the dartz package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dartz

More

Packages that depend on dartz_extensions