i have a list of Repository objects with two prope...
# announcements
t
i have a list of Repository objects with two properties, "language" and "watchers", i want to create a map(language, watchers), to show how many watchers each language has in total my current code is
repos.map { Pair(it.language, it.watchers) }.groupBy({ it.first }, { it.second })
, which is almost what i want (i want the sum of the numbers, not a list of them.) any tips?