Grouping<T, K> class

Serves as an step between grouping and folding operations.

It groups elements by their key and then allows you to fold each group with some aggregating operation.

To get an instance use the GroupingBy extension method.

Properties

group → Map<K, List<T>>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceIterator → Iterator<T>
Returns a new Iterator for the source of this grouping.
no setter

Methods

aggregate<R>(AggregateOperation<T, K, R> operation) → Map<K, R>
For each group the operation is applied to the elements of that group sequentially.
aggregateTo<R>(Map<K, R> destination, AggregateOperation<T, K, R> operation) → Map<K, R>
For each group the operation is applied to the elements of that group sequentially.
eachCount() → Map<K, int>
Groups elements by key and counts the elements in each group.
eachCountTo(Map<K, int> destination) → Map<K, int>
Groups elements by key and counts the elements in each group to the given map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](T element) → K?