File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,17 @@ package tasks
22
33import contributors.User
44
5- // TODO: Write aggregation code.
6- // In the initial list each user is present several times, once for each
7- // repository he or she contributed to.
8- // Merge duplications: each user should be present only once in the resulting list
9- // with the total value of contributions for all the repositories.
10- // Users should be sorted in a descending order by their contributions.
5+ /*
6+ TODO: Write aggregation code.
7+
8+ In the initial list each user is present several times, once for each
9+ repository he or she contributed to.
10+ Merge duplications: each user should be present only once in the resulting list
11+ with the total value of contributions for all the repositories.
12+ Users should be sorted in a descending order by their contributions.
13+
14+ The corresponding test can be found in test/tasks/AggregationKtTest.kt.
15+ You can use 'Navigate | Test' menu action (note the shortcut) to navigate to the test.
16+ */
1117fun List<User>.aggregate (): List <User > =
1218 this
You can’t perform that action at this time.
0 commit comments