News for hackers. Stuff that matters.
Re:Kotlin for Data Analysis by esafak on Wednesday August 28, 2024 @09:01PM (#41386168)
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:

https://kotlinlang.org/docs/scope-functions.html

Re:Kotlin for Data Analysis by hughesjj on Wednesday August 28, 2024 @09:33PM (#41386352)
You can do partials in python too

I do prefer python over kotlin but IMHO semantically they're both beautiful and some of the least frictive languages I've ever used