We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22476e3 commit 24c28efCopy full SHA for 24c28ef
examples/05_Collections/10_associateBy.md
@@ -4,6 +4,7 @@ Functions `associateBy` and `groupBy` build maps from the elements of a collecti
4
You can also specify an optional `valueSelector` to define what will be stored in the `value` of the map element.
5
6
The difference between `associateBy` and `groupBy` is how they process objects with the same key:
7
+
8
* `associateBy` uses the last suitable element as the value.
9
* `groupBy` builds a list of all suitable elements and puts it in the value.
10
0 commit comments