Pull to refresh
0

Software Developer

Send message
Можно написать иначе, чтобы было лениво, опции-то есть:

fun countLinesInFiles(fileNames: List<String>): Int =
    fileNames.sumBy { File(it).useLines { it.count() } }


Но все равно речь была немного не о том.

Information

Rating
Does not participate
Registered
Activity