It's easier to compose functions in Kotlin. The python version you showed is more ad hoc, and is really one list comprehension.
I particularly like Kotlin's scope functions:
I particularly like Kotlin's scope functions:
I do prefer python over kotlin but IMHO semantically they're both beautiful and some of the least frictive languages I've ever used