collection 1.12.0
collection: ^1.12.0 copied to clipboard
Collections and utilities functions and classes related to collections.
1.12.0 #
-
Add
CaseInsensitiveEquality. -
Fix bug in
equalsIgnoreAsciiCase.
1.11.0 #
- Add
EqualityMapandEqualitySetclasses which useEqualityobjects for key and element equality, respectively.
1.10.1 #
Set.differencenow takes aSet<Object>as argument.
1.9.1 #
- Fix some documentation bugs.
1.9.0 #
- Add a top-level
stronglyConnectedComponents()function that returns the strongly connected components in a directed graph.
1.8.0 #
-
Add a top-level
mapMap()function that works likeIterable.map()on aMap. -
Add a top-level
mergeMaps()function that creates a new map with the combined contents of two existing maps. -
Add a top-level
groupBy()function that converts anIterableto aMapby grouping its elements using a function. -
Add top-level
minBy()andmaxBy()functions that return the minimum and maximum values in anIterable, respectively, ordered by a derived value. -
Add a top-level
transitiveClosure()function that returns the transitive closure of a directed graph.
1.7.0 #
- Add a
const UnmodifiableSetView.empty()constructor.
1.6.0 #
-
Add a
UnionSetclass that provides a view of the union of a set of sets. -
Add a
UnionSetControllerclass that provides a convenient way to manage the contents of aUnionSet. -
Fix another incorrectly-declared generic type.
1.5.1 #
- Fix an incorrectly-declared generic type.
1.5.0 #
-
Add
DelegatingIterable.typed(),DelegatingList.typed(),DelegatingSet.typed(),DelegatingMap.typed(), andDelegatingQueue.typed()static methods. These wrap untyped instances of these classes with the correct type parameter, and assert the types of values as they're accessed. -
Fix the types for
binarySearch()andlowerBound()so they no longer require all arguments to be comparable. -
Add generic annotations to
insertionSort()andmergeSort().
1.4.1 #
- Fix all strong mode warnings.
1.4.0 #
-
Add a
new PriorityQueue()constructor that forwards tonew HeapPriorityQueue(). -
Deprecate top-level libraries other than
package:collection/collection.dart, which exports these libraries' interfaces.
1.3.0 #
-
Add
lowerBoundto binary search for values that might not be present. -
Verify that the is valid for
CanonicalMap.[].
1.2.0 #
- Add string comparators that ignore ASCII case and sort numbers numerically.
1.1.3 #
- Fix type inconsistencies with
MapandSet.
1.1.2 #
- Export
UnmodifiableMapViewfrom the Dart core libraries.
1.1.1 #
- Bug-fix for signatures of
isValidKeyarguments ofCanonicalizedMap.
1.1.0 #
- Add a
QueueListclass that implements bothQueueandList.
0.9.4 #
- Add a
CanonicalizedMapclass that canonicalizes its keys to provide a custom equality relation.
0.9.3+1 #
- Fix all analyzer hints.
0.9.3 #
-
Add a
MapKeySetclass that exposes an unmodifiableSetview of aMap's keys. -
Add a
MapValueSetclass that takes a function from values to keys and uses it to expose aSetview of aMap's values.