option_result 0.0.1-dev-4 copy "option_result: ^0.0.1-dev-4" to clipboard
option_result: ^0.0.1-dev-4 copied to clipboard

A lightweight Dart library for Rust-like Option/Result types. Supports exhaustive pattern matching and provides helpers for None()/Err() propagation

0.0.1-dev-4 #

  • Add Option#and(), andThen(), or(), orElse(), expect()
  • Add Result#and(), andThen(), or(), orElse(), expect(), expectErr()

0.0.1-dev-3 #

  • Add Option#map(), zip(), zipWith(), unzip()
  • Add Result#map(), mapErr()
  • Reworked propagateResult/Async semantics to be more in-line with Rust's Result Err propagation

0.0.1-dev-2 #

  • Add separate packages to allow importing option and result separately
  • Add Option#filter() method

0.0.1-dev-1 #

  • Initial version.
13
likes
0
pub points
59%
popularity

Publisher

unverified uploader

A lightweight Dart library for Rust-like Option/Result types. Supports exhaustive pattern matching and provides helpers for None()/Err() propagation

Repository (GitHub)
View/report issues

Topics

#option #result #pattern-matching

License

unknown (license)

More

Packages that depend on option_result