Skip to content

Commit 4c26794

Browse files
committed
Improved comment
1 parent e5d8d9b commit 4c26794

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/tasks/Aggregation.kt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ package tasks
22

33
import 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+
*/
1117
fun List<User>.aggregate(): List<User> =
1218
this

0 commit comments

Comments
 (0)