Mathias Brandt
Player
score: Int
list.reduce { ... }
list.map { it.score }.reduce { sum, score -> sum + score }
Lucas Ł
list.sumBy{it.score}
A modern programming language that makes developers happier.