elegant 2.0.2
elegant: ^2.0.2 copied to clipboard
A collection of utility functions and classes.
2.0.2 #
- Added value equality and matching hash codes to
OkandErr.
2.0.1 #
- Added lazy
oksanderrsviews for iterables ofResults. - Added lazy
valuesviews for iterables ofOks andErrs. - Added
sequence()to collect successful values or return the first error.
2.0.0 #
- Bumped minimum Dart SDK version to 3.13.7.
- Migrated to primary constructors, dot shorthands, etc.
- Redesigned
Result<T, E>as a sealedOk<T, E>/Err<T, E>type. - Added exhaustive pattern matching and Rust-inspired result operations.
- Added
map,andThen,mapError,fold,unwrapError,unwrapOrElse, andtoNullable. - Deprecated nullable-field-era getters and transform methods.
- Removed the public unnamed
Resultconstructor. UnwrapExceptionnow implementsException.
1.0.1 #
AggregateStreamController: aggregates the output of multiple streams of the same type.
1.0.0 #
- Bumped minimum Dart SDK version to 3.10.0, updated dependencies.
mapBy()function for mapping iterables by a key function. Also accessible with theIterable.mapByextension function.
0.0.7 #
Iterable.firstAfterandIterable.indexOf.
0.0.6 #
circularList()function for looping over lists infinitely. Also accessible with theList.circular()extension function.
0.0.5 #
groupBy()function for grouping iterables by an arbitrary condition.Iterableextension methods:groupBy,groups,pairs.
0.0.4 #
Result.transform'stransformerparam can now take null values.Result.transformOk: liketransform, but assumes the transformation result is always ok if the input is.
0.0.3 #
groups()andpairs()functions for generating groups from iterables.
0.0.2 #
Result.unwrap(): returns the result, or throws an exception.
0.0.1 #
- Initial version.