heart 0.6.0
heart: ^0.6.0 copied to clipboard
Extension methods for Strings and iterables, inspired by Haskell
0.6.0 #
Large rewrite. Code should be retested after upgrading. README shows updated behavior for all methods.
- BREAKING:
countfor iterables takes in an iterable and not an element, and does not include overlap by default. - BREAKING:
indiceschanged toindicesOfand does not include overlap by default. - BREAKING:
replacerequires 2 arguments. - BREAKING:
beforeandafterhave new parameters and behavior for edge cases. Also addedbeforeWhereandafterWhere.afterno longer starts from the end. - BREAKING: Zip functions have been consolidated into two extension methods:
zip, andzipWith. - BREAKING: Removed
lettersandletterCount. - BREAKING: Removed
drop, addeddropIndices,keepIndices. - BREAKING: Removed
isUpperCaseandisLowerCase. UseisUpper,isStrictlyUpper,isLower, andisStrictlyLower. - BREAKING:
insertInOrderfor iterables takes in an iterable, and inserts all characters for Strings. - BREAKING: Removed
unwords. - BREAKING:
interspersetakes in an iterable instead of an element. - BREAKING:
deepContainsnow takes in an iterable instead of an element. - BREAKING:
everyreturns true for empty String, same as for iterables. - BREAKING:
unionis nowaddMissing,intersectis nowkeep. - BREAKING: Removed
^operator, addedinc,dec,mult, anddiv. - Added
wordCountgetter for Strings. - Added
toInts,toRounded, andtoDoubles. - Added
frequenciesand sorting methods for Maps. - Added equivalents for Dart collection methods.
- Added optional parameters for many methods.
ascendinganddescendingwork for any types.chrandchrsreturn empty for invalid codes.- Operators separated from other extension methods to make it easier to show/hide.
- Bug fix:
initsfor String is no longer nullable.
0.5.8 #
- README update
0.5.7 #
- BREAKING:
shufflednow takes in an optional Random object
0.5.6 #
- Slight code changes, no functionality changed
0.5.5 #
- Methods for lists of numbers rewritten
0.5.4 #
- Updated repository in pubspec
0.5.3 #
- Slight optimizations to
beforeandafter
0.5.2 #
shufflednow has seed parameter
0.5.1 #
- README changes
0.5.0 #
- Added
beforeandafter. - Added
startsWithfor lists. - Added
indicesto search for sublists.elemIndicesdeprecated. - Added
replace.replaceFirstandreplaceAllfor lists are deprecated. intercalatenow has optional count parameter.
0.4.4 #
- Documentation correction
0.4.3 #
- Documentation correction
0.4.2 #
- Documentation correction
0.4.1 #
- Changes to CHANGELOG and README
0.4.0 #
rangeandinclusiveadded,numsdeprecatedrangeStringandinclusiveStringalso added- Moved helper.dart to src folder
0.3.0 #
- Min Dart SDK 2.19
- Fixed dangling comment in helper.dart
0.2.2 #
- Min Dart SDK lowered to 2.18
0.2.1 #
- Removed version constraint from collection dependency to resolve version pinning error
0.2.0 #
bigEqualsandbigContainsare deprecated in favor ofdeepEqualsanddeepContains
0.1.4 #
- README alphabetical links fixed
0.1.3 #
- Formatting file
0.1.2 #
- Documentation update
0.1.1 #
- Documentation update
0.1.0 #
drop(-n)for String has no effect instead of returning empty- Removed Flutter dependency, pure Dart
- Documentation updates
0.0.2 #
- Documentation update
0.0.1 #
- Initial release.