marcinmoskala
11/21/2017, 2:31 PMfun bestStudents(allStudents: List<Student>) = allStudents
.sortedBy { it.grade }
.take(10)
yole
11/27/2017, 4:49 PM=
sign, we discussed that and found that a small expression chunk after a long function signature is really hard to see and can obscure the meaning of the codemarcinmoskala
11/29/2017, 5:44 AMfun bestStudents(allStudents: List<Student>) =
allStudents
.sortedBy { it.grade }
.take(10)